示例#1
0
 /// <summary>
 /// Convert the <see cref="TestMerge"/> to it's API form
 /// </summary>
 /// <returns>A new <see cref="Api.Models.TestMerge"/></returns>
 public Api.Models.TestMerge ToApi() => new Api.Models.TestMerge
 {
     Author              = Author,
     BodyAtMerge         = BodyAtMerge,
     MergedAt            = MergedAt,
     TitleAtMerge        = TitleAtMerge,
     Comment             = Comment,
     Id                  = Id,
     MergedBy            = MergedBy.ToApi(false),
     Number              = Number,
     PullRequestRevision = PullRequestRevision,
     Url                 = Url
 };
示例#2
0
 /// <inheritdoc />
 public Api.Models.TestMerge ToApi() => new Api.Models.TestMerge
 {
     Author          = Author,
     BodyAtMerge     = BodyAtMerge,
     MergedAt        = MergedAt,
     TitleAtMerge    = TitleAtMerge,
     Comment         = Comment,
     Id              = Id,
     MergedBy        = MergedBy.ToApi(false),
     Number          = Number,
     TargetCommitSha = TargetCommitSha,
     Url             = Url
 };