diff --git a/RiotSharp/MatchEndpoint/Enums/Converters/QueueTypeConverter.cs b/RiotSharp/MatchEndpoint/Enums/Converters/QueueTypeConverter.cs index 08d3917f..9dcb3f29 100644 --- a/RiotSharp/MatchEndpoint/Enums/Converters/QueueTypeConverter.cs +++ b/RiotSharp/MatchEndpoint/Enums/Converters/QueueTypeConverter.cs @@ -84,6 +84,10 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist return QueueType.TeamBuilderDraftUnranked5x5; case "TEAM_BUILDER_DRAFT_RANKED_5x5": return QueueType.TeamBuilderDraftRanked5x5; + case "RANKED_FLEX_SR": + return QueueType.RankedFlexSR; + case "RANKED_FLEX_TT": + return QueueType.RankedFlexTT; default: return null; } diff --git a/RiotSharp/MatchEndpoint/Enums/Converters/SeasonConverter.cs b/RiotSharp/MatchEndpoint/Enums/Converters/SeasonConverter.cs index f661b62a..0d963fbc 100644 --- a/RiotSharp/MatchEndpoint/Enums/Converters/SeasonConverter.cs +++ b/RiotSharp/MatchEndpoint/Enums/Converters/SeasonConverter.cs @@ -36,6 +36,10 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist return Season.PreSeason2016; case "SEASON2016": return Season.Season2016; + case "PRESEASON2017": + return Season.PreSeason2017; + case "SEASON2017": + return Season.Season2017; default: return null; } diff --git a/RiotSharp/MatchEndpoint/Enums/QueueType.cs b/RiotSharp/MatchEndpoint/Enums/QueueType.cs index 633b1d20..e0a090fc 100644 --- a/RiotSharp/MatchEndpoint/Enums/QueueType.cs +++ b/RiotSharp/MatchEndpoint/Enums/QueueType.cs @@ -167,7 +167,17 @@ public enum QueueType /// /// New team builder queue type in ranked. /// - TeamBuilderDraftRanked5x5 + TeamBuilderDraftRanked5x5, + + /// + /// Ranked Flex Summoner's Rift games. + /// + RankedFlexSR, + + /// + /// Ranked Flex Twisted Treeline games. + /// + RankedFlexTT } static class QueueTypeExtension @@ -240,6 +250,10 @@ public static string ToCustomString(this QueueType queueType) return "TEAM_BUILDER_DRAFT_UNRANKED_5x5"; case QueueType.TeamBuilderDraftRanked5x5: return "TEAM_BUILDER_DRAFT_RANKED_5x5"; + case QueueType.RankedFlexSR: + return "RANKED_FLEX_SR"; + case QueueType.RankedFlexTT: + return "RANKED_FLEX_TT"; default: return string.Empty; } diff --git a/RiotSharp/MatchEndpoint/Enums/Season.cs b/RiotSharp/MatchEndpoint/Enums/Season.cs index 8476b63f..34aa2ea0 100644 --- a/RiotSharp/MatchEndpoint/Enums/Season.cs +++ b/RiotSharp/MatchEndpoint/Enums/Season.cs @@ -25,7 +25,7 @@ public enum Season PreSeason2014, /// - /// Season 2014 + /// Season 2014. /// Season2014, @@ -35,7 +35,7 @@ public enum Season PreSeason2015, /// - /// Season 2015 + /// Season 2015. /// Season2015, @@ -45,9 +45,19 @@ public enum Season PreSeason2016, /// - /// Season 2016 + /// Season 2016. /// - Season2016 + Season2016, + + /// + /// Pre season 2017. + /// + PreSeason2017, + + /// + /// Season 2017. + /// + Season2017 } static class SeasonExtension @@ -72,6 +82,10 @@ public static string ToCustomString(this Season season) return "PRESEASON2016"; case Season.Season2016: return "SEASON2016"; + case Season.PreSeason2017: + return "PRESEASON2017"; + case Season.Season2017: + return "SEASON2017"; default: return string.Empty; } diff --git a/RiotSharp/Misc/Queue.cs b/RiotSharp/Misc/Queue.cs index ab91cbd1..8a5bc27e 100644 --- a/RiotSharp/Misc/Queue.cs +++ b/RiotSharp/Misc/Queue.cs @@ -31,7 +31,17 @@ public enum Queue /// /// Team 5 v 5 - Dynamic Queue - Unranked /// - TeamBuilderDraftUnranked5x5 + TeamBuilderDraftUnranked5x5, + + /// + /// New Summoner's Rift ranked games. + /// + RankedFlexSR, + + /// + /// New Twisted Treeline ranked games. + /// + RankedFlexTT } static class QueueExtension @@ -50,6 +60,10 @@ public static string ToCustomString(this Queue queue) return "TEAM_BUILDER_DRAFT_RANKED_5x5"; case Queue.TeamBuilderDraftUnranked5x5: return "TEAM_BUILDER_DRAFT_UNRANKED_5x5"; + case Queue.RankedFlexSR: + return "RANKED_FLEX_SR"; + case Queue.RankedFlexTT: + return "RANKED_FLEX_TT"; default: return string.Empty; } diff --git a/RiotSharp/Misc/QueueConverter.cs b/RiotSharp/Misc/QueueConverter.cs index 235de13a..80fb406b 100644 --- a/RiotSharp/Misc/QueueConverter.cs +++ b/RiotSharp/Misc/QueueConverter.cs @@ -30,6 +30,10 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist return Queue.TeamBuilderDraftRanked5x5; case "TEAM_BUILDER_DRAFT_UNRANKED_5x5": return Queue.TeamBuilderDraftUnranked5x5; + case "RANKED_FLEX_SR": + return Queue.RankedFlexSR; + case "RANKED_FLEX_TT": + return Queue.RankedFlexTT; default: return null; } diff --git a/RiotSharp/Properties/AssemblyInfo.cs b/RiotSharp/Properties/AssemblyInfo.cs index c08c72e6..589393a0 100644 --- a/RiotSharp/Properties/AssemblyInfo.cs +++ b/RiotSharp/Properties/AssemblyInfo.cs @@ -24,4 +24,4 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.4.1.*")] +[assembly: AssemblyVersion("2.5.0.*")] diff --git a/RiotSharp/StatsEndpoint/Enums/Converters/PlayerStatsSummaryTypeConverter.cs b/RiotSharp/StatsEndpoint/Enums/Converters/PlayerStatsSummaryTypeConverter.cs index 7baabd65..6bcf3fb5 100644 --- a/RiotSharp/StatsEndpoint/Enums/Converters/PlayerStatsSummaryTypeConverter.cs +++ b/RiotSharp/StatsEndpoint/Enums/Converters/PlayerStatsSummaryTypeConverter.cs @@ -70,6 +70,10 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist return PlayerStatsSummaryType.Bilgewater; case "Siege": return PlayerStatsSummaryType.Siege; + case "RankedFlexSR": + return PlayerStatsSummaryType.RankedFlexSR; + case "RankedFlexTT": + return PlayerStatsSummaryType.RankedFlexTT; default: return null; } diff --git a/RiotSharp/StatsEndpoint/Enums/PlayerStatsSummaryType.cs b/RiotSharp/StatsEndpoint/Enums/PlayerStatsSummaryType.cs index 6db3c1af..0a85efb7 100644 --- a/RiotSharp/StatsEndpoint/Enums/PlayerStatsSummaryType.cs +++ b/RiotSharp/StatsEndpoint/Enums/PlayerStatsSummaryType.cs @@ -132,6 +132,16 @@ public enum PlayerStatsSummaryType /// /// Siege games. /// - Siege + Siege, + + /// + /// New Summoner's Rift ranked games. + /// + RankedFlexSR, + + /// + /// New Twisted Treeline ranked games. + /// + RankedFlexTT } }