public static BanPayload GetBan(ulong steamId) { string remaining; if (BansModel.Bans.TryGetValue(steamId, out remaining)) { return(BanPayload.FromBanManagerData(steamId, remaining)); } return(null); }
public static IList <BanPayload> GetBans() { var banPayloads = new List <BanPayload>(); foreach (var item in BansModel.Bans) { banPayloads.Add(BanPayload.FromBanManagerData(item.Key, item.Value)); } return(banPayloads); }