Exemplo n.º 1
0
 public static void Update_Data()
 {
     Get_JSON_String();
     fantasyPlayer = FantasyPlayer.FromJson(json);
     teamPosition  = TeamPosition.FromJson(json);
     teamDetail    = Team.FromJson(json);
     filter_Players("All");
     set_numberOfPlayers();
     //currentPlayer = fantasyPlayer.Element[databaseLocation];
     currentPlayer = filteredPlayers[databaseLocation];
 }
Exemplo n.º 2
0
 public static string ToJson(this FantasyPlayer self) => JsonConvert.SerializeObject(self, BusinessLogic.Converter.Settings);