diff --git a/IGDB/IGDBApi.cs b/IGDB/IGDBApi.cs index 1a47d6b..cae3bde 100644 --- a/IGDB/IGDBApi.cs +++ b/IGDB/IGDBApi.cs @@ -252,23 +252,33 @@ public static bool IsInvalidTokenResponse(ApiException ex) public static class Endpoints { public const string AgeRating = "age_ratings"; - public const string AgeRatingContentDescriptions = "age_rating_content_descriptions"; + public const string AgeRatingCategories = "age_rating_categories"; + public const string AgeRatingContentDescriptionsV2 = "age_rating_content_descriptions_v2"; + public const string AgeRatingOrganizations = "age_rating_organizations"; public const string AlternativeNames = "alternative_names"; public const string Artworks = "artworks"; public const string Characters = "characters"; + public const string CharacterGenders = "character_genders"; public const string CharacterMugShots = "character_mug_shots"; + public const string CharacterSpecies = "character_species"; public const string Collections = "collections"; public const string Companies = "companies"; + public const string CompanyStatus = "company_status"; public const string CompanyWebsites = "company_websites"; public const string CompanyLogos = "company_logos"; public const string Covers = "covers"; + public const string DateFormats = "date_formats"; public const string ExternalGames = "external_games"; + public const string ExternalGameSources = "external_game_sources"; public const string Franchies = "franchises"; public const string Games = "games"; public const string GameEngines = "game_engines"; public const string GameEngineLogos = "game_engine_logos"; public const string GameVersions = "game_versions"; public const string GameModes = "game_modes"; + public const string GameReleaseFormats = "game_release_formats"; + public const string GameStatuses = "game_statuses"; + public const string GameTypes = "game_types"; public const string GameVersionFeatures = "game_version_features"; public const string GameVersionFeatureValues = "game_version_feature_values"; public const string GameVideos = "game_videos"; @@ -279,16 +289,19 @@ public static class Endpoints public const string Platforms = "platforms"; public const string PlatformFamilies = "platform_families"; public const string PlatformLogos = "platform_logos"; + public const string PlatformTypes = "platform_types"; public const string PlatformVersions = "platform_versions"; public const string PlatformVersionCompanies = "platform_version_companies"; public const string PlatformVersionReleaseDates = "platform_version_release_dates"; public const string PlatformWebsites = "platform_websites"; public const string PlayerPerspectives = "player_perspectives"; public const string ReleaseDates = "release_dates"; + public const string ReleaseDateRegions = "release_date_regions"; public const string Screenshots = "screenshots"; public const string Search = "search"; public const string Themes = "themes"; public const string Websites = "websites"; + public const string WebsiteTypes = "website_types"; } } } diff --git a/IGDB/Models/AgeRating.cs b/IGDB/Models/AgeRating.cs index 21c3cd0..200c863 100644 --- a/IGDB/Models/AgeRating.cs +++ b/IGDB/Models/AgeRating.cs @@ -2,66 +2,12 @@ namespace IGDB.Models { public class AgeRating : IIdentifier, IHasChecksum { - public AgeRatingCategory? Category { get; set; } public string Checksum { get; set; } - public IdentitiesOrValues ContentDescriptions { get; set; } - public long? Id { get; set; } - public AgeRatingTitle? Rating { get; set; } + public IdentityOrValue Organization { get; set; } + public IdentityOrValue RatingCategory { get; set; } + public IdentitiesOrValues RatingContentDescriptions { get; set; } public string RatingCoverUrl { get; set; } public string Synopsis { get; set; } - } - - public enum AgeRatingCategory - { - ESRB = 1, - PEGI = 2, - CERO = 3, - USK = 4, - GRAC = 5, - CLASS_IND = 6, - ACB = 7 - } - - public enum AgeRatingTitle - { - Three = 1, - Seven = 2, - Twelve = 3, - Sixteen = 4, - Eighteen = 5, - RP = 6, - EC = 7, - E = 8, - E10 = 9, - T = 10, - M = 11, - AO = 12, - CERO_A = 13, - CERO_B = 14, - CERO_C = 15, - CERO_D = 16, - CERO_Z = 17, - USK_0 = 18, - USK_6 = 19, - USK_12 = 20, - USK_16 = 21, - USK_18 = 22, - GRAC_All = 23, - GRAC_Twelve = 24, - GRAC_Fifteen = 25, - GRAC_Eighteen = 26, - GRAC_Testing = 27, - CLASS_IND_L = 28, - CLASS_IND_Ten = 29, - CLASS_IND_Twelve = 30, - CLASS_IND_Fourteen = 31, - CLASS_IND_Sixteen = 32, - CLASS_IND_Eighteen = 33, - ACB_G = 34, - ACB_PG = 35, - ACB_M = 36, - ACB_MA15 = 37, - ACB_R18 = 38, - ACB_RC = 39, + public long? Id { get; set; } } } \ No newline at end of file diff --git a/IGDB/Models/AgeRatingCategory.cs b/IGDB/Models/AgeRatingCategory.cs new file mode 100644 index 0000000..f68b1c7 --- /dev/null +++ b/IGDB/Models/AgeRatingCategory.cs @@ -0,0 +1,14 @@ +using System; + +namespace IGDB.Models +{ + public class AgeRatingCategory : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public IdentityOrValue Organization { get; set; } + public string Rating { get; set; } + public long? Id { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/AgeRatingContentDescription.cs b/IGDB/Models/AgeRatingContentDescription.cs deleted file mode 100644 index c59b115..0000000 --- a/IGDB/Models/AgeRatingContentDescription.cs +++ /dev/null @@ -1,99 +0,0 @@ -namespace IGDB.Models -{ - public class AgeRatingContentDescription : IIdentifier, IHasChecksum - { - public AgeRatingContentDescriptionCategory? Category { get; set; } - public string Checksum { get; set; } - public string Description { get; set; } - public long? Id { get; set; } - } - - public enum AgeRatingContentDescriptionCategory - { - ESRB_alcohol_reference = 1, - ESRB_animated_blood = 2, - ESRB_blood = 3, - ESRB_blood_and_gore = 4, - ESRB_cartoon_violence = 5, - ESRB_comic_mischief = 6, - ESRB_crude_humor = 7, - ESRB_drug_reference = 8, - ESRB_fantasy_violence = 9, - ESRB_intense_violence = 10, - ESRB_language = 11, - ESRB_lyrics = 12, - ESRB_mature_humor = 13, - ESRB_nudity = 14, - ESRB_partial_nudity = 15, - ESRB_real_gambling = 16, - ESRB_sexual_content = 17, - ESRB_sexual_themes = 18, - ESRB_sexual_violence = 19, - ESRB_simulated_gambling = 20, - ESRB_strong_language = 21, - ESRB_strong_lyrics = 22, - ESRB_strong_sexual_content = 23, - ESRB_suggestive_themes = 24, - ESRB_tobacco_reference = 25, - ESRB_use_of_alcohol = 26, - ESRB_use_of_drugs = 27, - ESRB_use_of_tobacco = 28, - ESRB_violence = 29, - ESRB_violent_references = 30, - ESRB_animated_violence = 31, - ESRB_mild_language = 32, - ESRB_mild_violence = 33, - ESRB_use_of_drugs_and_alcohol = 34, - ESRB_drug_and_alcohol_reference = 35, - ESRB_mild_suggestive_themes = 36, - ESRB_mild_cartoon_violence = 37, - ESRB_mild_blood = 38, - ESRB_realistic_blood_and_gore = 39, - ESRB_realistic_violence = 40, - ESRB_alcohol_and_tobacco_reference = 41, - ESRB_mature_sexual_themes = 42, - ESRB_mild_animated_violence = 43, - ESRB_mild_sexual_themes = 44, - ESRB_use_of_alcohol_and_tobacco = 45, - ESRB_animated_blood_and_gore = 46, - ESRB_mild_fantasy_violence = 47, - ESRB_mild_lyrics = 48, - ESRB_realistic_blood = 49, - PEGI_violence = 50, - PEGI_sex = 51, - PEGI_drugs = 52, - PEGI_fear = 53, - PEGI_discrimination = 54, - PEGI_bad_language = 55, - PEGI_gambling = 56, - PEGI_online_gameplay = 57, - PEGI_in_game_purchases = 58, - CERO_love = 59, - CERO_sexual_content = 60, - CERO_violence = 61, - CERO_horror = 62, - CERO_drinking_smoking = 63, - CERO_gambling = 64, - CERO_crime = 65, - CERO_controlled_substances = 66, - CERO_languages_and_others = 67, - GRAC_sexuality = 68, - GRAC_violence = 69, - GRAC_fear_horror_threatening = 70, - GRAC_language = 71, - GRAC_alcohol_tobacco_drug = 72, - GRAC_crime_anti_social = 73, - GRAC_gambling = 74, - CLASS_IND_violencia = 75, - CLASS_IND_violencia_extrema = 76, - CLASS_IND_conteudo_sexual = 77, - CLASS_IND_nudez = 78, - CLASS_IND_sexo = 79, - CLASS_IND_sexo_explicito = 80, - CLASS_IND_drogas = 81, - CLASS_IND_drogas_licitas = 82, - CLASS_IND_drogas_ilicitas = 83, - CLASS_IND_linguagem_impropria = 84, - CLASS_IND_atos_criminosos = 85 - } -} \ No newline at end of file diff --git a/IGDB/Models/AgeRatingContentDescriptionV2.cs b/IGDB/Models/AgeRatingContentDescriptionV2.cs new file mode 100644 index 0000000..9f0bb08 --- /dev/null +++ b/IGDB/Models/AgeRatingContentDescriptionV2.cs @@ -0,0 +1,14 @@ +using System; + +namespace IGDB.Models +{ + public class AgeRatingContentDescriptionV2 : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public IdentityOrValue Organization { get; set; } + public string Description { get; set; } + public long? Id { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/AgeRatingOrganization.cs b/IGDB/Models/AgeRatingOrganization.cs new file mode 100644 index 0000000..9ac908c --- /dev/null +++ b/IGDB/Models/AgeRatingOrganization.cs @@ -0,0 +1,9 @@ +namespace IGDB.Models +{ + public class AgeRatingOrganization : IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public string Name { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/Character.cs b/IGDB/Models/Character.cs index 96a3e72..2c08d3c 100644 --- a/IGDB/Models/Character.cs +++ b/IGDB/Models/Character.cs @@ -5,34 +5,18 @@ namespace IGDB.Models public class Character : ITimestamps, IIdentifier, IHasChecksum { public string[] Akas { get; set; } + public IdentityOrValue CharacterGender { get; set; } + public IdentityOrValue CharacterSpecies { get; set; } public string Checksum { get; set; } public string CountryName { get; set; } public DateTimeOffset? CreatedAt { get; set; } public string Description { get; set; } public IdentitiesOrValues Games { get; set; } - public Gender? Gender { get; set; } public long? Id { get; set; } public IdentityOrValue MugShot { get; set; } public string Name { get; set; } public string Slug { get; set; } - public Species? Species { get; set; } public DateTimeOffset? UpdatedAt { get; set; } public string Url { get; set; } } - - public enum Gender - { - Male = 1, - Female = 2, - Other = 3 - } - - public enum Species - { - Human = 1, - Alien = 2, - Animal = 3, - Android = 4, - Unknown = 5 - } } \ No newline at end of file diff --git a/IGDB/Models/CharacterGender.cs b/IGDB/Models/CharacterGender.cs new file mode 100644 index 0000000..c0960ed --- /dev/null +++ b/IGDB/Models/CharacterGender.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class CharacterGender : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public string Name { get; set; } + public long? Id { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/CharacterSpecies.cs b/IGDB/Models/CharacterSpecies.cs new file mode 100644 index 0000000..13ad157 --- /dev/null +++ b/IGDB/Models/CharacterSpecies.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class CharacterSpecies : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public string Name { get; set; } + public long? Id { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/Company.cs b/IGDB/Models/Company.cs index db4c3e3..66ab8c5 100644 --- a/IGDB/Models/Company.cs +++ b/IGDB/Models/Company.cs @@ -5,7 +5,7 @@ namespace IGDB.Models public class Company : ITimestamps, IIdentifier, IHasChecksum { public DateTimeOffset? ChangeDate { get; set; } - public ChangeDateCategory ChangeDateCategory { get; set; } + public IdentityOrValue ChangeDateFormat { get; set; } public IdentityOrValue ChangedCompanyId { get; set; } public string Checksum { get; set; } @@ -27,34 +27,10 @@ public class Company : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues Published { get; set; } public string Slug { get; set; } public DateTimeOffset? StartDate { get; set; } - public StartDateCategory? StartDateCategory { get; set; } + public IdentityOrValue StartDateFormat { get; set; } + public IdentityOrValue Status { get; set; } public DateTimeOffset? UpdatedAt { get; set; } public string Url { get; set; } public IdentitiesOrValues Websites { get; set; } - - } - - public enum ChangeDateCategory - { - YYYYMMMMDD = 0, - YYYYMMMM = 1, - YYYY = 2, - YYYYQ1 = 3, - YYYYQ2 = 4, - YYYYQ3 = 5, - YYYYQ4 = 6, - TBD = 7 - } - - public enum StartDateCategory - { - YYYYMMMMDD = 0, - YYYYMMMM = 1, - YYYY = 2, - YYYYQ1 = 3, - YYYYQ2 = 4, - YYYYQ3 = 5, - YYYYQ4 = 6, - TBD = 7 } } \ No newline at end of file diff --git a/IGDB/Models/CompanyStatus.cs b/IGDB/Models/CompanyStatus.cs new file mode 100644 index 0000000..7b4fb03 --- /dev/null +++ b/IGDB/Models/CompanyStatus.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class CompanyStatus : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Name { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/CompanyWebsite.cs b/IGDB/Models/CompanyWebsite.cs index bdb4d61..9f30733 100644 --- a/IGDB/Models/CompanyWebsite.cs +++ b/IGDB/Models/CompanyWebsite.cs @@ -2,31 +2,10 @@ namespace IGDB.Models { public class CompanyWebsite : IIdentifier, IHasChecksum { - public CompanyWebsiteCategory? Category { get; set; } public string Checksum { get; set; } public long? Id { get; set; } public bool? Trusted { get; set; } + public IdentityOrValue Type { get; set; } public string Url { get; set; } } - - public enum CompanyWebsiteCategory - { - Official = 1, - Wikia = 2, - Wikipedia = 3, - Facebook = 4, - Twitter = 5, - Twitch = 6, - Instagram = 8, - YouTube = 9, - iPhone = 10, - iPad = 11, - Android = 12, - Steam = 13, - Reddit = 14, - Itch = 15, - EpicGames = 16, - GOG = 17, - Discord = 18 - } } \ No newline at end of file diff --git a/IGDB/Models/DateFormat.cs b/IGDB/Models/DateFormat.cs new file mode 100644 index 0000000..18beff7 --- /dev/null +++ b/IGDB/Models/DateFormat.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class DateFormat : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Format { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/ExternalGame.cs b/IGDB/Models/ExternalGame.cs index f6347ab..c65c961 100644 --- a/IGDB/Models/ExternalGame.cs +++ b/IGDB/Models/ExternalGame.cs @@ -4,15 +4,15 @@ namespace IGDB.Models { public class ExternalGame : ITimestamps, IIdentifier, IHasChecksum { - public ExternalCategory? Category { get; set; } public string Checksum { get; set; } public double[] Countries { get; set; } public DateTimeOffset? CreatedAt { get; set; } + public IdentityOrValue ExternalGameSource { get; set; } public IdentityOrValue Game { get; set; } + public IdentityOrValue GameReleaseFormat { get; set; } public long? Id { get; set; } - public ExternalGameMedia? Media { get; set; } public string Name { get; set; } @@ -26,34 +26,4 @@ public class ExternalGame : ITimestamps, IIdentifier, IHasChecksum public int? Year { get; set; } } - - public enum ExternalGameMedia - { - Digital = 1, - Physical = 2 - } - - public enum ExternalCategory - { - Steam = 1, - GOG = 5, - YouTube = 10, - Microsoft = 11, - Apple = 13, - Twitch = 14, - Android = 15, - AmazonAsin = 20, - AmazonLuna = 22, - AmazonAdg = 23, - EpicGameStore = 26, - Oculus = 28, - Utomik = 29, - ItchIO = 30, - XboxMarketplace = 31, - Kartridge = 32, - PlaystationStoreUS = 36, - FocusEntertainment = 37, - XboxGamePassUltimateCloud = 54, - Gamejolt = 55 - } } \ No newline at end of file diff --git a/IGDB/Models/ExternalGameSource.cs b/IGDB/Models/ExternalGameSource.cs new file mode 100644 index 0000000..ffd521e --- /dev/null +++ b/IGDB/Models/ExternalGameSource.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class ExternalGameSource : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Name { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/Game.cs b/IGDB/Models/Game.cs index b8bc7e9..b742d2d 100644 --- a/IGDB/Models/Game.cs +++ b/IGDB/Models/Game.cs @@ -17,8 +17,6 @@ public class Game : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues Bundles { get; set; } - public Category? Category { get; set; } - public string Checksum { get; set; } public IdentitiesOrValues Collections { get; set; } @@ -48,6 +46,8 @@ public class Game : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues GameLocalizations { get; set; } public IdentitiesOrValues GameModes { get; set; } + public IdentityOrValue GameStatus { get; set; } + public IdentityOrValue GameType { get; set; } public IdentitiesOrValues Genres { get; set; } @@ -91,8 +91,6 @@ public class Game : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues StandaloneExpansions { get; set; } - public GameStatus? Status { get; set; } - public string Storyline { get; set; } public string Summary { get; set; } @@ -117,35 +115,4 @@ public class Game : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues Websites { get; set; } } - - public enum Category - { - MainGame = 0, - DlcAddon = 1, - Expansion = 2, - Bundle = 3, - StandaloneExpansion = 4, - Mod = 5, - Episode = 6, - Season = 7, - Remake = 8, - Remaster = 9, - ExpandedGame = 10, - Port = 11, - Fork = 12, - Pack = 13, - Update = 14 - } - - public enum GameStatus - { - Released = 0, - Alpha = 2, - Beta = 3, - EarlyAccess = 4, - Offline = 5, - Cancelled = 6, - Rumored = 7, - Delisted = 8 - } } \ No newline at end of file diff --git a/IGDB/Models/GameReleaseFormat.cs b/IGDB/Models/GameReleaseFormat.cs new file mode 100644 index 0000000..bfecdd6 --- /dev/null +++ b/IGDB/Models/GameReleaseFormat.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class GameReleaseFormat : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Format { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/GameStatus.cs b/IGDB/Models/GameStatus.cs new file mode 100644 index 0000000..f1e6092 --- /dev/null +++ b/IGDB/Models/GameStatus.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class GameStatus : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Status { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/GameType.cs b/IGDB/Models/GameType.cs new file mode 100644 index 0000000..a1cb082 --- /dev/null +++ b/IGDB/Models/GameType.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class GameType : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Type { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/Platform.cs b/IGDB/Models/Platform.cs index fc6cd51..6333ed6 100644 --- a/IGDB/Models/Platform.cs +++ b/IGDB/Models/Platform.cs @@ -6,7 +6,6 @@ public class Platform : ITimestamps, IIdentifier, IHasChecksum { public string Abbreviation { get; set; } public string AlternativeName { get; set; } - public PlatformCategory? Category { get; set; } public string Checksum { get; set; } public DateTimeOffset? CreatedAt { get; set; } public int? Generation { get; set; } @@ -14,6 +13,8 @@ public class Platform : ITimestamps, IIdentifier, IHasChecksum public string Name { get; set; } public IdentityOrValue PlatformFamily { get; set; } public IdentityOrValue PlatformLogo { get; set; } + public IdentityOrValue PlatformType { get; set; } + public string Slug { get; set; } public string Summary { get; set; } public DateTimeOffset? UpdatedAt { get; set; } @@ -21,14 +22,4 @@ public class Platform : ITimestamps, IIdentifier, IHasChecksum public IdentitiesOrValues Versions { get; set; } public IdentitiesOrValues Websites { get; set; } } - - public enum PlatformCategory - { - Console = 1, - Arcade = 2, - Platform = 3, - OperatingSystem = 4, - PortableConsole = 5, - Computer = 6 - } } \ No newline at end of file diff --git a/IGDB/Models/PlatformType.cs b/IGDB/Models/PlatformType.cs new file mode 100644 index 0000000..e88a29d --- /dev/null +++ b/IGDB/Models/PlatformType.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class PlatformType : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Name { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file diff --git a/IGDB/Models/PlatformVersionReleaseDate.cs b/IGDB/Models/PlatformVersionReleaseDate.cs index b1509f4..00ba2df 100644 --- a/IGDB/Models/PlatformVersionReleaseDate.cs +++ b/IGDB/Models/PlatformVersionReleaseDate.cs @@ -5,16 +5,16 @@ namespace IGDB.Models { public class PlatformVersionReleaseDate : ITimestamps, IIdentifier, IHasChecksum { - public ReleaseDateCategory? Category { get; set; } public string Checksum { get; set; } public DateTimeOffset? CreatedAt { get; set; } public DateTimeOffset? Date { get; set; } + public IdentityOrValue DateFormat { get; set; } public string Human { get; set; } public long? Id { get; set; } [JsonProperty("m")] public int? Month { get; set; } public IdentityOrValue PlatformVersion { get; set; } - public ReleaseDateRegion? Region { get; set; } + public IdentityOrValue ReleaseRegion { get; set; } public DateTimeOffset? UpdatedAt { get; set; } [JsonProperty("y")] public int? Year { get; set; } diff --git a/IGDB/Models/ReleaseDate.cs b/IGDB/Models/ReleaseDate.cs index 8d17f06..1fa75bb 100644 --- a/IGDB/Models/ReleaseDate.cs +++ b/IGDB/Models/ReleaseDate.cs @@ -5,17 +5,17 @@ namespace IGDB.Models { public class ReleaseDate : ITimestamps, IIdentifier, IHasChecksum { - public ReleaseDateCategory? Category { get; set; } public string Checksum { get; set; } public DateTimeOffset? CreatedAt { get; set; } public DateTimeOffset? Date { get; set; } + public IdentityOrValue DateFormat { get; set; } public IdentityOrValue Game { get; set; } public long? Id { get; set; } public string Human { get; set; } [JsonProperty("m")] public int? Month { get; set; } public IdentityOrValue Platform { get; set; } - public ReleaseDateRegion? Region { get; set; } + public IdentityOrValue ReleaseRegion { get; set; } public IdentityOrValue Status { get; set; } public DateTimeOffset? UpdatedAt { get; set; } [JsonProperty("y")] diff --git a/IGDB/Models/ReleaseDateCategory.cs b/IGDB/Models/ReleaseDateCategory.cs deleted file mode 100644 index 7346b2f..0000000 --- a/IGDB/Models/ReleaseDateCategory.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace IGDB.Models -{ - public enum ReleaseDateCategory - { - YYYYMMMMDD = 0, - YYYYMMMM = 1, - YYYY = 2, - YYYYQ1 = 3, - YYYYQ2 = 4, - YYYYQ3 = 5, - YYYYQ4 = 6, - TBD = 7 - } -} \ No newline at end of file diff --git a/IGDB/Models/ReleaseDateRegion.cs b/IGDB/Models/ReleaseDateRegion.cs index 19c066b..57cc6e8 100644 --- a/IGDB/Models/ReleaseDateRegion.cs +++ b/IGDB/Models/ReleaseDateRegion.cs @@ -1,16 +1,13 @@ +using System; + namespace IGDB.Models { - public enum ReleaseDateRegion + public class ReleaseDateRegion : ITimestamps, IIdentifier, IHasChecksum { - Europe = 1, - NorthAmerica = 2, - Australia = 3, - NewZealand = 4, - Japan = 5, - China = 6, - Asia = 7, - Worldwide = 8, - Korea = 9, - Brazil = 10 + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Region { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } } } \ No newline at end of file diff --git a/IGDB/Models/Website.cs b/IGDB/Models/Website.cs index 1a5ca0b..3382c6d 100644 --- a/IGDB/Models/Website.cs +++ b/IGDB/Models/Website.cs @@ -2,32 +2,11 @@ namespace IGDB.Models { public class Website : IIdentifier, IHasChecksum { - public WebsiteCategory Category { get; set; } public string Checksum { get; set; } public IdentityOrValue Game { get; set; } public long? Id { get; set; } public bool? Trusted { get; set; } + public IdentityOrValue Type { get; set; } public string Url { get; set; } } - - public enum WebsiteCategory - { - Official = 1, - Wikia = 2, - Wikipedia = 3, - Facebook = 4, - Twitter = 5, - Twitch = 6, - Instagram = 8, - YouTube = 9, - iPhone = 10, - iPad = 11, - Android = 12, - Steam = 13, - Reddit = 14, - Itch = 15, - EpicGames = 16, - GOG = 17, - Discord = 18 - } } \ No newline at end of file diff --git a/IGDB/Models/WebsiteType.cs b/IGDB/Models/WebsiteType.cs new file mode 100644 index 0000000..4f6095f --- /dev/null +++ b/IGDB/Models/WebsiteType.cs @@ -0,0 +1,13 @@ +using System; + +namespace IGDB.Models +{ + public class WebsiteType : ITimestamps, IIdentifier, IHasChecksum + { + public string Checksum { get; set; } + public DateTimeOffset? CreatedAt { get; set; } + public string Type { get; set; } + public DateTimeOffset? UpdatedAt { get; set; } + public long? Id { get; set; } + } +} \ No newline at end of file