public TasClient(string appName, Login.ClientTypes?clientTypes = null, string ipOverride = null) { if (clientTypes.HasValue) { clientType = clientTypes.Value; } this.appName = appName; if (!string.IsNullOrEmpty(ipOverride)) { localIp = ipOverride; forcedLocalIP = true; } else { var addresses = Dns.GetHostAddresses(Dns.GetHostName()); localIp = addresses[0].ToString(); foreach (var adr in addresses) { if (adr.AddressFamily == AddressFamily.InterNetwork) { localIp = adr.ToString(); break; } } } pingTimer = new Timer(pingInterval * 1000) { AutoReset = true }; pingTimer.Elapsed += OnPingTimer; }
public void UpdateWith(User u) { AccountID = u.AccountID; SpringieLevel = u.SpringieLevel; SteamID = u.SteamID; AwaySince = u.AwaySince; Clan = u.Clan; Avatar = u.Avatar; Country = u.Country; EffectiveElo = u.EffectiveElo; Effective1v1Elo = u.Effective1v1Elo; Faction = u.Faction; InGameSince = u.InGameSince; IsAdmin = u.IsAdmin; IsBot = u.IsBot; // todo hacky fix IsInBattleRoom = u.IsInBattleRoom; BanMute = u.BanMute; Level = u.Level; ClientType = u.ClientType; DisplayName = u.DisplayName; Name = u.Name; }
public void UpdateWith(User u) { AccountID = u.AccountID; SpringieLevel = u.SpringieLevel; SteamID = u.SteamID; AwaySince = u.AwaySince; Clan = u.Clan; Avatar = u.Avatar; Country = u.Country; EffectiveElo = u.EffectiveElo; Effective1v1Elo = u.Effective1v1Elo; Faction = u.Faction; InGameSince = u.InGameSince; IsAdmin = u.IsAdmin; IsBot = u.IsBot; // todo hacky fix IsInBattleRoom = u.IsInBattleRoom; BanMute = u.BanMute; BanSpecChat = u.BanSpecChat; Level = u.Level; ClientType = u.ClientType; LobbyVersion = u.LobbyVersion; DisplayName = u.DisplayName; Name = u.Name; }
public void UpdateWith(User u) { AccountID = u.AccountID; SteamID = u.SteamID; AwaySince = u.AwaySince; Clan = u.Clan; Avatar = u.Avatar; Country = u.Country; EffectiveMmElo = u.EffectiveMmElo; Faction = u.Faction; InGameSince = u.InGameSince; IsAdmin = u.IsAdmin; IsBot = u.IsBot; BanMute = u.BanMute; BanSpecChat = u.BanSpecChat; Level = u.Level; ClientType = u.ClientType; LobbyVersion = u.LobbyVersion; DisplayName = u.DisplayName; CompetitiveRank = u.CompetitiveRank; }