Exemplo n.º 1
0
        private IBoardPostEntity LoadThreadPreview(PostsTable table)
        {
            BasicEntityInfo bi = default(BasicEntityInfo);
            var             r  = new PostModelStoreThreadPreview();

            SetThreadPreviewData(table, r, ref bi);
            return(r);
        }
Exemplo n.º 2
0
 private void SetThreadPreviewData(PostsTable table, PostModelStoreThreadPreview data, ref BasicEntityInfo bi)
 {
     SetThreadPreviewData(table.Views.ThreadPreviewLoadInfoView.Fetch(), data, ref bi);
 }
Exemplo n.º 3
0
        private void SetThreadPreviewData(PostsTable.ViewValues.ThreadPreviewLoadInfoView v, PostModelStoreThreadPreview data, ref BasicEntityInfo bi)
        {
            SetPostCollectionData(v, data, ref bi);
            var counts = ReadThreadPreviewCounts(v.PreviewCounts);

            data.ImageCount     = counts.imageCount;
            data.Omit           = counts.omit;
            data.OmitImages     = counts.omitImages;
            data.ReplyCount     = counts.replyCount;
            data.OnPageSequence = v.ThreadPreviewSequence ?? int.MaxValue;
        }