Exemplo n.º 1
0
        public string UpdateRss()
        {
            string str = "";

            try
            {
                Api.RssFeeds.RssFeeds objRssFeed = new Api.RssFeeds.RssFeeds();
                str = objRssFeed.GetRssData();
                List <Domain.Socioboard.MongoDomain.Rss> lstRss = (List <Domain.Socioboard.MongoDomain.Rss>) new JavaScriptSerializer().Deserialize(str, typeof(List <Domain.Socioboard.MongoDomain.Rss>));
                foreach (var item in lstRss)
                {
                    string rt = objRssFeed.ParseFeedUrl(item.RssFeedUrl, item.ProfileType, item.ProfileId, item.UserId, item.ProfileName, item.ProfileImageUrl);
                    if (rt == "ok")
                    {
                        Console.WriteLine("Rss Url Added");
                    }
                    Thread.Sleep(5 * 1000);
                }
            }
            catch (Exception ex)
            {
                str = ex.Message;
            }
            return("Success");
        }
Exemplo n.º 2
0
 public string PostRssFeed(string ProfileType)
 {
     string str = "";
     try
     {
         Api.RssFeeds.RssFeeds objRssFeed = new Api.RssFeeds.RssFeeds();
         str = objRssFeed.PostRssfeed(ProfileType);
     }
     catch (Exception ex)
     {
         str = ex.Message;
     }
     return str;
 }
Exemplo n.º 3
0
        public string PostRssFeed(string ProfileType)
        {
            string str = "";

            try
            {
                Api.RssFeeds.RssFeeds objRssFeed = new Api.RssFeeds.RssFeeds();
                str = objRssFeed.PostRssfeed(ProfileType);
            }
            catch (Exception ex)
            {
                str = ex.Message;
            }
            return(str);
        }
Exemplo n.º 4
0
 public string UpdateRss()
 {
     string str = "";
     try
     {
         Api.RssFeeds.RssFeeds objRssFeed = new Api.RssFeeds.RssFeeds();
         str = objRssFeed.GetRssData();
         List<Domain.Socioboard.MongoDomain.Rss> lstRss = (List<Domain.Socioboard.MongoDomain.Rss>)new JavaScriptSerializer().Deserialize(str, typeof(List<Domain.Socioboard.MongoDomain.Rss>));
         foreach (var item in lstRss)
         {
             string rt = objRssFeed.ParseFeedUrl(item.RssFeedUrl, item.ProfileType,item.ProfileId,item.UserId,item.ProfileName,item.ProfileImageUrl);
             if (rt == "ok")
             {
                 Console.WriteLine("Rss Url Added");
             }
             Thread.Sleep(5*1000);
         }
     }
     catch (Exception ex)
     {
         str = ex.Message;
     }
     return "Success";
 }