Beispiel #1
0
        public static List <PostVo> Fill(List <PhotoPost> photoList)
        {
            List <PostVo> results = new List <PostVo>();

            foreach (PhotoPost post in photoList)
            {
                PostVo vo = new PostVo();

                vo.Title        = strUtil.CutString(post.Title, 15);
                vo.TitleFull    = post.Title;
                vo.Url          = alink.ToAppData(post);
                vo.ImgThumbUrl  = post.ImgThumbUrl;
                vo.ImgMediumUrl = post.ImgMediumUrl;
                vo.ImgUrl       = post.ImgUrl;

                String viewsAndReplies = getViewsAndReplies(post);
                vo.ViewsAndReplies = viewsAndReplies;

                results.Add(vo);
            }
            return(results);
        }
Beispiel #2
0
        public static List<PostVo> Fill( List<PhotoPost> photoList )
        {
            List<PostVo> results = new List<PostVo>();
            foreach (PhotoPost post in photoList) {

                PostVo vo = new PostVo();

                vo.Title = strUtil.CutString( post.Title, 15 );
                vo.TitleFull = post.Title;
                vo.Url= alink.ToAppData( post ) ;
                vo.ImgThumbUrl = post.ImgThumbUrl;
                vo.ImgMediumUrl = post.ImgMediumUrl;
                vo.ImgUrl = post.ImgUrl;

                String viewsAndReplies = getViewsAndReplies( post );
                vo.ViewsAndReplies = viewsAndReplies;

                results.Add( vo );

            }
            return results;
        }