示例#1
0
        private async Task <PSNItem> GetPSNItem(string ContentID, string Region, string age)
        {
            PSNItem         item     = new PSNItem();
            NetworkResponse response = await GetResponse(ContentID, Region, age);

            if (response.ResponseCode == "OK")
            {
                string body = response.Body;
                item = PSNItem.FromJson(body);
                return(item);
            }
            else
            {
                return(null);
            }
        }
示例#2
0
 public static string ToJson(this PSNItem self) => JsonConvert.SerializeObject(self, Converter.Settings);