Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        // Tank Fuctions

        public async Task <List <Tank> > GetAllSpecificTanks(string ID)
        {
            Query         q  = Guild_Healers.WhereEqualTo("InGameName", ID);
            QuerySnapshot qs = await q.GetSnapshotAsync();

            List <Tank> ReDamageList = new List <Tank>();
            Tank        TempObj      = null;

            foreach (DocumentSnapshot ds in qs.Documents)
            {
                if (ds.Exists)
                {
                    TempObj = ds.ConvertTo <Tank>();
                    ReDamageList.Add(TempObj);
                }
            }

            return(ReDamageList);
        }
Exemplo n.º 3
0
 public async Task DeleteGuildHealer(string ID)
 {
     DocumentReference df = Guild_Healers.Document(ID);
     await df.DeleteAsync();
 }
Exemplo n.º 4
0
 public async Task UpdateHealer(Healer d)
 {
     await Guild_Healers.Document(d.CharacterName).SetAsync(d);
 }