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); }
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; }