예제 #1
0
        /// <summary>
        /// Get the list of available seasons.
        /// </summary>
        /// <remarks>
        /// Note: The list of seasons will only be changing about once every
        /// two months when a new season is added. Applications should not be
        /// querying for the list of seasons more than once per month.
        /// </remarks>
        public List <Season> GetSeasons(PlatformShard shard)
        {
            string        shardUri  = BuildShardUri(shard);
            string        seasonUri = shardUri + "seasons";
            IRestResponse response  = MakeRequest(seasonUri);

            return(Season.Deserialize(response.Content));
        }