public async Task <bool> Store(NixUser user) { if (await storage.ExistsAsync <NixUser>(CreateProperties(user))) { return(false); } await storage.InsertAsync(user); return(true); }
public async Task <bool> Store(NixChannel channel) { if (await storage.ExistsAsync <NixChannel>(CreateProperties(channel))) { return(false); } await storage.InsertAsync(channel); return(true); }
public async Task <bool> Store(NixGuild guild) { if (await storage.ExistsAsync <NixGuild>(CreateProperties(guild))) { return(false); } await storage.InsertAsync(guild); return(true); }