예제 #1
0
        public string TumblerData(string tumblrusername)
        {
            GlobusTumblerLib.Tumblr.Core.BlogMethods.BlogInfo objBlogInfo = new GlobusTumblerLib.Tumblr.Core.BlogMethods.BlogInfo();

            try
            {
                string PostCount  = "";
                string LikesCount = "";

                string   objData = objBlogInfo.getTumblrUserInfo(tumblrusername);
                string[] words   = objData.Split('&');
                PostCount  = words[1].ToString();
                LikesCount = words[0].ToString();
                Domain.Socioboard.Domain.TumblerData objDomainTumblerData = new Domain.Socioboard.Domain.TumblerData();
                objDomainTumblerData.PostCount  = PostCount;
                objDomainTumblerData.LikesCount = LikesCount;

                return(new JavaScriptSerializer().Serialize(objDomainTumblerData));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                return("");
            }
        }
예제 #2
0
        public string TumblerData(string tumblrusername)
        {
            GlobusTumblerLib.Tumblr.Core.BlogMethods.BlogInfo objBlogInfo = new GlobusTumblerLib.Tumblr.Core.BlogMethods.BlogInfo();

            try
            {
                string PostCount = "";
                string LikesCount = "";

                string objData = objBlogInfo.getTumblrUserInfo(tumblrusername);
                string[] words = objData.Split('&');
                PostCount = words[1].ToString();
                LikesCount = words[0].ToString();
                Domain.Socioboard.Domain.TumblerData objDomainTumblerData = new Domain.Socioboard.Domain.TumblerData();
                objDomainTumblerData.PostCount = PostCount;
                objDomainTumblerData.LikesCount = LikesCount;

                return new JavaScriptSerializer().Serialize(objDomainTumblerData);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                return "";
            }

        }