public GetCommentRequest(GetCommentByIdOptions opts)
 {
     CreateVerbosityCommand   = () => new SetVerbosityCommand(opts);
     CreateGetEntityQuery     = () => new GetCommentByIdQuery(opts);
     CreateLogEntityCommand   = article => new LogCommentCommand(article, opts, opts.ToInclusionConfiguration());
     CreateWriteEntityCommand = article => new WriteCommentCommand(article, opts, opts.ToInclusionConfiguration());
 }
Beispiel #2
0
 public GetBoardRequest(GetBoardByIdOptions opts)
 {
     CreateVerbosityCommand   = () => new SetVerbosityCommand(opts);
     CreateGetEntityQuery     = () => new GetBoardByIdQuery(opts);
     CreateLogEntityCommand   = board => new LogBoardCommand(board, opts, opts.ToInclusionConfiguration());
     CreateWriteEntityCommand = board => new WriteBoardCommand(board, opts, opts.ToInclusionConfiguration());
 }
Beispiel #3
0
 public PostCommentRequest(PostCommentOptions opts)
 {
     CreateVerbosityCommand = () => new SetVerbosityCommand(opts);
     CreateSignInCommand    = () => new SignInCommand(opts);
     CreatePostCommand      = () => new PostCommentCommand(opts.ToPostModel());
     CreateLogCommand       = postedComment => new LogCommentCommand(postedComment, opts);
     CreateWriteCommand     = postedComment => new WriteCommentCommand(postedComment, opts);
 }
Beispiel #4
0
 public PostBoardRequest(PostBoardOptions opts)
 {
     CreateVerbosityCommand = () => new SetVerbosityCommand(opts);
     CreateSignInCommand    = () => new SignInCommand(opts);
     CreatePostCommand      = () => new PostBoardCommand(opts.ToPostModel());
     CreateLogCommand       = postedBoard => new LogBoardCommand(postedBoard, opts);
     CreateWriteCommand     = postedBoard => new WriteBoardCommand(postedBoard, opts);
 }
 public PostArticleRequest(PostArticleOptions opts)
 {
     CreateVerbosityCommand = () => new SetVerbosityCommand(opts);
     CreateSignInCommand    = () => new SignInCommand(opts);
     CreatePostCommand      = () => new PostArticleCommand(opts.ToPostModel());
     CreateLogCommand       = postedArticle => new LogArticleCommand(postedArticle, opts);
     CreateWriteCommand     = postedArticle => new WriteArticleCommand(postedArticle, opts);
 }