public Fivem(string Code) { EpHTTP http = new EpHTTP(); this.RServer = http.GetServer(Code); if (this.RServer != null) { this.RServer.isOnline = true; } else { this.RServer = new RServer() { isOnline = false }; } }
public Fivem(string ipport) { EpHTTP http = new EpHTTP(ipport); Info Info = http.GetInfo(); List <User> Players = http.GetPlayers(); RServer = new RServer() { isOnline = false }; if (Info != null && Players != null) { RServer = new RServer() { isOnline = true, Players = Players, Info = Info }; } }