Beispiel #1
0
        public async Task <bool> Remove(NixUser user)
        {
            if (!await storage.ExistsAsync <NixUser>(CreateProperties(user)))
            {
                return(false);
            }

            await storage.DeleteAsync <NixUser>(CreateProperties(user));

            return(true);
        }
Beispiel #2
0
        public async Task <bool> Remove(NixChannel channel)
        {
            if (!await storage.ExistsAsync <NixChannel>(CreateProperties(channel)))
            {
                return(false);
            }

            await storage.DeleteAsync <NixChannel>(CreateProperties(channel));

            return(true);
        }
Beispiel #3
0
        public async Task <bool> Remove(NixGuild guild)
        {
            if (!await storage.ExistsAsync <NixGuild>(CreateProperties(guild)))
            {
                return(false);
            }

            await storage.DeleteAsync <NixGuild>(CreateProperties(guild));

            return(true);
        }