public async Task <HealerGear> GetHealerGear(string ID) { DocumentReference df = Guild_Healer_Gear.Document(ID); DocumentSnapshot ds = await df.GetSnapshotAsync(); HealerGear TempObj = null; if (ds.Exists) { TempObj = ds.ConvertTo <HealerGear>(); } return(TempObj); }
public async Task UpdateHealerGear(HealerGear d) { await Guild_Healer_Gear.Document(d.ign).SetAsync(d); }