Ejemplo n.º 1
0
        public static void UpdateRssChannelsDateBase(User user)
        {
            List <string> listUrl = _operationDataBase.GetCurrentListUrlChannels(user.Login);

            foreach (var url in listUrl)
            {
                var rssChannel = RssLoader.ParserRss(url);
                rssChannel.Link = url;

                _operationDataBase.UpdateUserContent(user.Login, rssChannel);
            }
        }
Ejemplo n.º 2
0
        public static ObservableCollection <Catalog> AddChannelDataBase(string url, string catalog, string login)
        {
            var rssChannel = RssLoader.ParserRss(url);

            rssChannel.Link = url;

            if (catalog == "" || catalog == null)
            {
                catalog = "Different";
            }

            _operationDataBase.AddUserContent(login, rssChannel, catalog);

            return(UpdaterRss.UpdateTreeViewChannels(login));
        }