public FavoriteServer(Server server) { _queryMode = server.QueryMode; _address = server.Address; _name = server.Name; _mod = String.Join(";", server.Mods); // Loss of info _gameName = server.GameName; }
public void Update(Server server) { _mod = String.Join(";", server.Mods); _name = server.Name; _gameName = server.GameName; _queryMode = server.QueryMode; }
public RecentServer(Server server) { _queryMode = server.QueryMode; _address = server.Address; _mod = String.Join(";", server.Mods); // Loss of info _name = server.Name; _gameName = server.GameName; _on = Tools.Generic.GetCurrentUtcDateTime; }
static ServerQueryResult CreateQueryResult(ServerQueryMode queryMode, IDictionary <string, string> settings) { switch (queryMode) { case ServerQueryMode.Gamespy: return(new GamespyServerQueryResult(settings)); case ServerQueryMode.Steam: return(new SourceServerQueryResult(settings)); case ServerQueryMode.All: return(new SourceServerQueryResult(settings)); default: throw new InvalidOperationException("Unsupported mode: " + queryMode); } }