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