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

            await storage.InsertAsync(user);

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

            await storage.InsertAsync(channel);

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

            await storage.InsertAsync(guild);

            return(true);
        }