コード例 #1
0
ファイル: NixUserProvider.cs プロジェクト: ZitaRR/Nix
        public async Task <bool> Remove(NixUser user)
        {
            if (!await storage.ExistsAsync <NixUser>(CreateProperties(user)))
            {
                return(false);
            }

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

            return(true);
        }
コード例 #2
0
ファイル: NixChannelProvider.cs プロジェクト: ZitaRR/Nix
        public async Task <bool> Remove(NixChannel channel)
        {
            if (!await storage.ExistsAsync <NixChannel>(CreateProperties(channel)))
            {
                return(false);
            }

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

            return(true);
        }
コード例 #3
0
ファイル: NixGuildProvider.cs プロジェクト: ZitaRR/Nix
        public async Task <bool> Remove(NixGuild guild)
        {
            if (!await storage.ExistsAsync <NixGuild>(CreateProperties(guild)))
            {
                return(false);
            }

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

            return(true);
        }