Exemplo n.º 1
0
        public static BanPayload GetBan(ulong steamId)
        {
            string remaining;

            if (BansModel.Bans.TryGetValue(steamId, out remaining))
            {
                return(BanPayload.FromBanManagerData(steamId, remaining));
            }
            return(null);
        }
Exemplo n.º 2
0
        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);
        }