public async Task <IReadOnlyList <GetServerListInfo> > GetServers(GetServerOptions options) { var optionList = options.GetFlagsName(); var res = await Client.Send("serverlist", null, optionList.ToArray()).ConfigureAwait(false); return(DataProxy.SerializeGeneric <GetServerListInfo>(res)); }
private bool setupServerOptions() { var getServerOptionsCall = new GetServerOptions(); if (!CallMethod(getServerOptionsCall, 5000) || getServerOptionsCall.HadFault) { return(false); } ServerOptions = getServerOptionsCall.ReturnValue; return(true); }