public void RemoveSubscription(RedditSubscriptionModel model) { if (model != null) { RedditSubscriptions.Remove(model); } }
public void RemoveSubscription(string subredditUrl, ulong id) { RedditSubscriptionModel model = GetSubscriptionByIdAndUrl(subredditUrl, id); if (model != null) { RedditSubscriptions.Remove(model); } }
public bool AddSubscription(RedditSubscriptionModel model) { if (!DoesSubExistForGuild(model.Subreddit, model.DiscordGuildId)) { RedditSubscriptions.Add(model); return(true); } return(false); }