public void RtvMatches()
 {
     _jsonMatches = JsonConvert.DeserializeObject <Matches_>(Utils.GetJson("https://api.guildwars2.com/v1/wvw/matches.json"));
     _jsonMatches.wvw_matches.Sort((x, y) => y.wvw_match_id != null ? (x.wvw_match_id != null ? String.Compare(x.wvw_match_id, y.wvw_match_id, StringComparison.Ordinal) : 0) : 0);
     WvwMatch.Match = _jsonMatches.wvw_matches;
     _jsonMatches   = null;
 }
Exemplo n.º 2
0
 public void RtvMatches()
 {
     _jsonMatches = JsonConvert.DeserializeObject<Matches_>(Utils.GetJson("https://api.guildwars2.com/v1/wvw/matches.json"));
     _jsonMatches.wvw_matches.Sort((x, y) => y.wvw_match_id != null ? (x.wvw_match_id != null ? String.Compare(x.wvw_match_id, y.wvw_match_id, StringComparison.Ordinal) : 0) : 0);
     WvwMatch.Match = _jsonMatches.wvw_matches;
     _jsonMatches = null;
 }