Updated data types.

This commit is contained in:
mmuffins 2018-05-22 22:49:59 +02:00
parent d2af8b1864
commit 7cea1c157e
7 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ namespace SteamStorefrontAPI
public class Category
{
[JsonProperty("id")]
public long Id { get; set; }
public int Id { get; set; }
[JsonProperty("description")]
public string Description { get; set; }

View File

@ -12,7 +12,7 @@ namespace SteamStorefrontAPI
public class Genre
{
[JsonProperty("id")]
public string Id { get; set; }
public int Id { get; set; }
[JsonProperty("description")]
public string Description { get; set; }

View File

@ -12,7 +12,7 @@ namespace SteamStorefrontAPI
public class Movie
{
[JsonProperty("id")]
public long Id { get; set; }
public int Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }

View File

@ -23,7 +23,7 @@ namespace SteamStorefrontAPI
public double Final { get; set; }
[JsonProperty("discount_percent")]
public long DiscountPercent { get; set; }
public int DiscountPercent { get; set; }
}
public class LongToDoubleConverter : JsonConverter

View File

@ -13,7 +13,7 @@ namespace SteamStorefrontAPI
public class Screenshot
{
[JsonProperty("id")]
public long Id { get; set; }
public int Id { get; set; }
[JsonProperty("path_thumbnail")]
public string PathThumbnail { get; set; }

View File

@ -19,7 +19,7 @@ namespace SteamStorefrontAPI.Classes
public string Name { get; set; }
[JsonProperty("steam_appid")]
public long SteamAppid { get; set; }
public int SteamAppid { get; set; }
[JsonProperty("required_age")]
public string RequiredAge { get; set; }

View File

@ -13,13 +13,13 @@ namespace SteamStorefrontAPI
public class Sub
{
[JsonProperty("packageid")]
public long Packageid { get; set; }
public int Packageid { get; set; }
[JsonProperty("percent_savings_text")]
public string PercentSavingsText { get; set; }
[JsonProperty("percent_savings")]
public long PercentSavings { get; set; }
public int PercentSavings { get; set; }
[JsonProperty("option_text")]
public string OptionText { get; set; }