Exemplo n.º 1
0
        public static ProTeam parseProTeamJSON(JSONNode json)
        {
            List <FlavorTextEntry> flavorTextEntries = FlavorTextEntry.parseFlavorTextEntriesJSON(json["flavorTextEntries"].AsArray);
            List <TrendByWeek>     trendsByWeek      = TrendByWeek.parseTrendsByWeekJSON(json["trendsByWeek"]);
            List <string>          positions         = Chompers.Chompers.parseStringArrayJSON(json["positions"].AsArray);

            return(new ProTeam(json["id"], json["riotId"], json["name"], json["shortName"], flavorTextEntries, trendsByWeek, positions, json["league"]));
        }
Exemplo n.º 2
0
        public static ProPlayer parseProPlayerJSON(JSONNode json)
        {
            List <string>          positions         = Chompers.Chompers.parseStringArrayJSON(json["positions"].AsArray);
            List <FlavorTextEntry> flavorTextEntries = FlavorTextEntry.parseFlavorTextEntriesJSON(json["flavorTextEntries"].AsArray);
            List <TrendByWeek>     trendsByWeek      = TrendByWeek.parseTrendsByWeekJSON(json["trendsByWeek"]);

            return(new ProPlayer(json["id"], json["riotId"], json["name"], json["photoUrl"], positions, json["proTeamId"], flavorTextEntries, trendsByWeek));
        }