コード例 #1
0
 /// <summary>
 /// <inheritdoc />
 /// </summary>
 /// <returns></returns>
 public PostBuilder InitializeWithDefaultValues()
 {
     CommandStatus = CommentStatusValue.Open;
     PingStatus    = PingStatusValue.Open;
     Format        = PostFormat.Standard;
     Status        = PostStatus.Pending;
     return(this);
 }
コード例 #2
0
 public MediaBuilder InitializeWithDefaultValues()
 {
     AssociatedPostId = -1;
     CommandStatus    = CommentStatusValue.Open;
     PingStatus       = PingStatusValue.Open;
     AuthorId         = -1;
     return(this);
 }
コード例 #3
0
 /// <summary>
 /// Sets the ping status on the post
 /// </summary>
 /// <param name="pingStatus"></param>
 /// <returns></returns>
 public PostBuilder WithPingStatus(PingStatusValue pingStatus)
 {
     PingStatus = pingStatus;
     return(this);
 }