Ejemplo n.º 1
0
        private Links ParsePostLinks()
        {
            var postBlock = PostPageBlock.Create(this._element);

            if (postBlock == null)
            {
                return(null);
            }
            Links result = new Links();

            result.Id    = postBlock.Id;
            result.Items = postBlock.AllLinks;
            return(result);
        }
Ejemplo n.º 2
0
        private MainData ParsePostMainData()
        {
            var postBlock = PostPageBlock.Create(this._element);

            if (postBlock == null)
            {
                return(null);
            }
            MainData result = new MainData();

            result.Id     = postBlock.Id;
            result.Text   = postBlock.Content.Content.Info == null || postBlock.Content.Content.Info.Wall.Content.WallText == null ? "" : postBlock.Content.Content.Info.Wall.Content.WallText.Text;
            result.Author = postBlock.Content.Header.Info.Author.Name;
            return(result);
        }
Ejemplo n.º 3
0
        private Images ParsePostImages()
        {
            var postBlock = PostPageBlock.Create(this._element);

            if (postBlock == null)
            {
                return(null);
            }
            Images result = new Images();

            result.Id         = postBlock.Id;
            result.ImageFiles = postBlock.Content.Content.Info == null || postBlock.Content.Content.Info.Wall.Content.WallThumbs == null
                ? new List <string>()
                : postBlock.Content.Content.Info.Wall.Content.WallThumbs.ImageUrl;
            return(result);
        }