public Feed CreateFeed(string url, FeedAutoDownload autoDownload, bool is_subscribed) { Feed feed = null; url = url.Trim().TrimEnd('/'); if (!Feed.Exists(url)) { feed = new Feed(url, autoDownload); feed.IsSubscribed = is_subscribed; feed.Save(); feed.Update(); } return(feed); }
public Feed CreateFeed(string url, string title, FeedAutoDownload autoDownload, int max_items, bool is_subscribed) { Feed feed = null; url = url.Trim().TrimEnd('/'); if (!Feed.Exists(url)) { feed = new Feed(url, autoDownload); feed.Title = title; feed.IsSubscribed = is_subscribed; feed.MaxItemCount = max_items; feed.Save(); feed.Update(); } return(feed); }