Exemple #1
0
 public void RemoveSubscription(RedditSubscriptionModel model)
 {
     if (model != null)
     {
         RedditSubscriptions.Remove(model);
     }
 }
Exemple #2
0
        public void RemoveSubscription(string subredditUrl, ulong id)
        {
            RedditSubscriptionModel model = GetSubscriptionByIdAndUrl(subredditUrl, id);

            if (model != null)
            {
                RedditSubscriptions.Remove(model);
            }
        }
Exemple #3
0
 public bool AddSubscription(RedditSubscriptionModel model)
 {
     if (!DoesSubExistForGuild(model.Subreddit, model.DiscordGuildId))
     {
         RedditSubscriptions.Add(model);
         return(true);
     }
     return(false);
 }