From 7cea1c157e3d05e212296e052b0fc75610137c6c Mon Sep 17 00:00:00 2001 From: mmuffins Date: Tue, 22 May 2018 22:49:59 +0200 Subject: [PATCH] Updated data types. --- SteamStorefrontAPI/appdetails/Classes/Category.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/Genre.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/Movie.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/Screenshot.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/SteamApp.cs | 2 +- SteamStorefrontAPI/appdetails/Classes/Sub.cs | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/SteamStorefrontAPI/appdetails/Classes/Category.cs b/SteamStorefrontAPI/appdetails/Classes/Category.cs index 0c8e4cf..06a0c76 100644 --- a/SteamStorefrontAPI/appdetails/Classes/Category.cs +++ b/SteamStorefrontAPI/appdetails/Classes/Category.cs @@ -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; } diff --git a/SteamStorefrontAPI/appdetails/Classes/Genre.cs b/SteamStorefrontAPI/appdetails/Classes/Genre.cs index 96685b4..6f600f5 100644 --- a/SteamStorefrontAPI/appdetails/Classes/Genre.cs +++ b/SteamStorefrontAPI/appdetails/Classes/Genre.cs @@ -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; } diff --git a/SteamStorefrontAPI/appdetails/Classes/Movie.cs b/SteamStorefrontAPI/appdetails/Classes/Movie.cs index 2e9f984..5a73326 100644 --- a/SteamStorefrontAPI/appdetails/Classes/Movie.cs +++ b/SteamStorefrontAPI/appdetails/Classes/Movie.cs @@ -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; } diff --git a/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs b/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs index 85704cf..d8372ce 100644 --- a/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs +++ b/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs @@ -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 diff --git a/SteamStorefrontAPI/appdetails/Classes/Screenshot.cs b/SteamStorefrontAPI/appdetails/Classes/Screenshot.cs index dc84795..7786a93 100644 --- a/SteamStorefrontAPI/appdetails/Classes/Screenshot.cs +++ b/SteamStorefrontAPI/appdetails/Classes/Screenshot.cs @@ -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; } diff --git a/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs b/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs index 16f13c9..aee3ccd 100644 --- a/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs +++ b/SteamStorefrontAPI/appdetails/Classes/SteamApp.cs @@ -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; } diff --git a/SteamStorefrontAPI/appdetails/Classes/Sub.cs b/SteamStorefrontAPI/appdetails/Classes/Sub.cs index 5d5543e..2d7bc95 100644 --- a/SteamStorefrontAPI/appdetails/Classes/Sub.cs +++ b/SteamStorefrontAPI/appdetails/Classes/Sub.cs @@ -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; }