Ejemplo n.º 1
0
        public async Task <TankGear> GetTankGear(string ID)
        {
            DocumentReference df = Guild_Tank_Gear.Document(ID);
            DocumentSnapshot  ds = await df.GetSnapshotAsync();

            TankGear TempObj = null;

            if (ds.Exists)
            {
                TempObj = ds.ConvertTo <TankGear>();
            }

            return(TempObj);
        }
Ejemplo n.º 2
0
 public async Task UpdateTankGear(TankGear d)
 {
     await Guild_Tank_Gear.Document(d.ign).SetAsync(d);
 }
Ejemplo n.º 3
0
 public GuildMember(GuildMember g, List <Damage> d, List <Healer> h, List <Tank> t, TankGear tg)
 {
     InGameName     = g.InGameName;
     Events_Joined  = g.Events_Joined;
     LastActive     = g.LastActive;
     Guild_Rank     = g.Guild_Rank;
     DD_Rank        = g.DD_Rank;
     Healer_Rank    = g.Healer_Rank;
     Tank_Rank      = g.Tank_Rank;
     Discord_ID     = g.Discord_ID;
     Discord_Name   = g.Discord_Name;
     JoinDate       = g.JoinDate;
     this.TankGears = tg;
     this.Tank      = t;
     this.Healers   = h;
     this.DDs       = d;
 }