コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PullrequestEndpoint" /> class.
 /// </summary>
 /// <param name="Repository">Repository.</param>
 /// <param name="Branch">Branch.</param>
 /// <param name="Commit">Commit.</param>
 public PullrequestEndpoint(Repository Repository = default(Repository), PullrequestEndpointBranch Branch = default(PullrequestEndpointBranch), PullrequestEndpointCommit Commit = default(PullrequestEndpointCommit))
 {
     this.Repository = Repository;
     this.Branch     = Branch;
     this.Commit     = Commit;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pullrequest" /> class.
 /// </summary>
 /// <param name="Type">Type (required).</param>
 /// <param name="Links">Links.</param>
 /// <param name="Id">The pull request&#39;s unique ID. Note that pull request IDs are only unique within their associated repository..</param>
 /// <param name="Title">Title of the pull request..</param>
 /// <param name="Rendered">Rendered.</param>
 /// <param name="Summary">Summary.</param>
 /// <param name="State">The pull request&#39;s current status..</param>
 /// <param name="Author">Author.</param>
 /// <param name="Source">Source.</param>
 /// <param name="Destination">Destination.</param>
 /// <param name="MergeCommit">MergeCommit.</param>
 /// <param name="CommentCount">The number of comments for a specific pull request..</param>
 /// <param name="TaskCount">The number of open tasks for a specific pull request..</param>
 /// <param name="CloseSourceBranch">A boolean flag indicating if merging the pull request closes the source branch..</param>
 /// <param name="ClosedBy">ClosedBy.</param>
 /// <param name="Reason">Explains why a pull request was declined. This field is only applicable to pull requests in rejected state..</param>
 /// <param name="CreatedOn">The ISO8601 timestamp the request was created..</param>
 /// <param name="UpdatedOn">The ISO8601 timestamp the request was last updated..</param>
 /// <param name="Reviewers">The list of users that were added as reviewers on this pull request when it was created. For performance reasons, the API only includes this list on a pull request&#39;s &#x60;self&#x60; URL..</param>
 /// <param name="Participants">        The list of users that are collaborating on this pull request.         Collaborators are user that:          * are added to the pull request as a reviewer (part of the reviewers           list)         * are not explicit reviewers, but have commented on the pull request         * are not explicit reviewers, but have approved the pull request          Each user is wrapped in an object that indicates the user&#39;s role and         whether they have approved the pull request. For performance reasons,         the API only returns this list when an API requests a pull request by         id.         .</param>
 public Pullrequest(string Type = default(string), PullrequestLinks Links = default(PullrequestLinks), int?Id = default(int?), string Title = default(string), PullrequestRendered Rendered = default(PullrequestRendered), CommentContent Summary = default(CommentContent), StateEnum?State = default(StateEnum?), Account Author = default(Account), PullrequestEndpoint Source = default(PullrequestEndpoint), PullrequestEndpoint Destination = default(PullrequestEndpoint), PullrequestEndpointCommit MergeCommit = default(PullrequestEndpointCommit), int?CommentCount = default(int?), int?TaskCount = default(int?), bool?CloseSourceBranch = default(bool?), Account ClosedBy = default(Account), string Reason = default(string), DateTime?CreatedOn = default(DateTime?), DateTime?UpdatedOn = default(DateTime?), List <Account> Reviewers = default(List <Account>), List <Participant> Participants = default(List <Participant>))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for Pullrequest and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     this.Links             = Links;
     this.Id                = Id;
     this.Title             = Title;
     this.Rendered          = Rendered;
     this.Summary           = Summary;
     this.State             = State;
     this.Author            = Author;
     this.Source            = Source;
     this.Destination       = Destination;
     this.MergeCommit       = MergeCommit;
     this.CommentCount      = CommentCount;
     this.TaskCount         = TaskCount;
     this.CloseSourceBranch = CloseSourceBranch;
     this.ClosedBy          = ClosedBy;
     this.Reason            = Reason;
     this.CreatedOn         = CreatedOn;
     this.UpdatedOn         = UpdatedOn;
     this.Reviewers         = Reviewers;
     this.Participants      = Participants;
 }