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); }
public async Task UpdateTankGear(TankGear d) { await Guild_Tank_Gear.Document(d.ign).SetAsync(d); }
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; }