Esempio n. 1
0
        public async Task <bool> Store(NixUser user)
        {
            if (await storage.ExistsAsync <NixUser>(CreateProperties(user)))
            {
                return(false);
            }

            await storage.InsertAsync(user);

            return(true);
        }
Esempio n. 2
0
        public async Task <bool> Store(NixChannel channel)
        {
            if (await storage.ExistsAsync <NixChannel>(CreateProperties(channel)))
            {
                return(false);
            }

            await storage.InsertAsync(channel);

            return(true);
        }
Esempio n. 3
0
        public async Task <bool> Store(NixGuild guild)
        {
            if (await storage.ExistsAsync <NixGuild>(CreateProperties(guild)))
            {
                return(false);
            }

            await storage.InsertAsync(guild);

            return(true);
        }