public async Task <Healer> GetGuildHealer(string ID) { DocumentReference df = Guild_Healers.Document(ID); DocumentSnapshot ds = await df.GetSnapshotAsync(); Healer TempObj = null; if (ds.Exists) { TempObj = ds.ConvertTo <Healer>(); } return(TempObj); }
// Healer Fuctions public async Task <List <Healer> > GetAllSpecificHealers(string ID) { Query q = Guild_Healers.WhereEqualTo("InGameName", ID); QuerySnapshot qs = await q.GetSnapshotAsync(); List <Healer> ReDamageList = new List <Healer>(); Healer TempObj = null; foreach (DocumentSnapshot ds in qs.Documents) { if (ds.Exists) { TempObj = ds.ConvertTo <Healer>(); ReDamageList.Add(TempObj); } } return(ReDamageList); }
public async Task UpdateHealer(Healer d) { await Guild_Healers.Document(d.CharacterName).SetAsync(d); }