示例#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);
        }
示例#2
0
        // 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);
        }
示例#3
0
 public async Task UpdateHealer(Healer d)
 {
     await Guild_Healers.Document(d.CharacterName).SetAsync(d);
 }