コード例 #1
0
 public CatalogThreadOverView(Guid threadId, string subject, Board board, PostOverView op)
 {
     this.ThreadId = EnsureArg.IsNotEmpty(threadId, nameof(threadId));
     Board         = EnsureArg.IsNotNull(board, nameof(board));
     Subject       = EnsureArg.IsNotNull(subject, nameof(subject));
     OP            = EnsureArg.IsNotNull(op, nameof(op));
 }
コード例 #2
0
 public ThreadOverView(Guid threadId, string subject, PostOverView firstPost, IReadOnlyList <PostOverView> finalPosts, ThreadOverViewStats stats)
 {
     this.ThreadId = EnsureArg.IsNotEmpty(threadId, nameof(threadId));
     Subject       = EnsureArg.IsNotNull(subject, nameof(subject));
     OP            = EnsureArg.IsNotNull(firstPost, nameof(firstPost));
     FinalPosts    = EnsureArg.IsNotNull(finalPosts, nameof(finalPosts));
     Stats         = EnsureArg.IsNotNull(stats, nameof(stats));
 }
コード例 #3
0
ファイル: PostDetailView.cs プロジェクト: luhis/shitforum
 public PostContextView(Guid threadId, string threadSubject, BoardOverView board, PostOverView post)
 {
     ThreadId      = EnsureArg.IsNotEmpty(threadId, nameof(threadId));
     ThreadSubject = EnsureArg.IsNotNull(threadSubject, nameof(threadSubject));
     Board         = EnsureArg.IsNotNull(board, nameof(board));
     Post          = EnsureArg.IsNotNull(post, nameof(post));
 }