提交 4a2833fd 编写于 作者: B Bogdan Kobylynskyi

Include all args constructor in the model generation #6

上级 08716df1
......@@ -18,6 +18,14 @@ public class ${className} <#if implements?has_content>implements <#list implemen
public ${className}() {
}
<#if fields?has_content>
public ${className}(<#list fields as field>${field.type} ${field.name}<#if field_has_next>, </#if></#list>) {
<#list fields as field>
this.${field.name} = ${field.name};
</#list>
}
</#if>
<#list fields as field>
public ${field.type} get${field.name?cap_first}() {
return ${field.name};
......
......@@ -76,6 +76,47 @@ public class Commit implements Closer, IssueTimelineItem, PullRequestTimelineIte
public Commit() {
}
public Commit(String abbreviatedOid, Integer additions, PullRequestConnection associatedPullRequests, GitActor author, Boolean authoredByCommitter, String authoredDate, Blame blame, Integer changedFiles, CommitCommentConnection comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GitActor committer, Integer deletions, DeploymentConnection deployments, CommitHistoryConnection history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, CommitConnection parents, String pushedDate, Repository repository, String resourcePath, GitSignature signature, Status status, String tarballUrl, Tree tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, SubscriptionState viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
......
......@@ -46,6 +46,47 @@ public class Commit implements Closer, IssueTimelineItem, PullRequestTimelineIte
public Commit() {
}
public Commit(String abbreviatedOid, Integer additions, PullRequestConnection associatedPullRequests, GitActor author, Boolean authoredByCommitter, String authoredDate, Blame blame, Integer changedFiles, CommitCommentConnection comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GitActor committer, Integer deletions, DeploymentConnection deployments, CommitHistoryConnection history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, CommitConnection parents, String pushedDate, Repository repository, String resourcePath, GitSignature signature, Status status, String tarballUrl, Tree tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, SubscriptionState viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
......
......@@ -16,6 +16,17 @@ public class Event {
public Event() {
}
public Event(String id, String categoryId, Collection<EventProperty> properties, EventStatus status, String createdBy, String createdDateTime, Boolean active, Integer rating) {
this.id = id;
this.categoryId = categoryId;
this.properties = properties;
this.status = status;
this.createdBy = createdBy;
this.createdDateTime = createdDateTime;
this.active = active;
this.rating = rating;
}
public String getId() {
return id;
}
......
......@@ -14,6 +14,15 @@ public class EventProperty {
public EventProperty() {
}
public EventProperty(Float floatVal, Boolean booleanVal, Integer intVal, String stringVal, Collection<EventProperty> child, Event parent) {
this.floatVal = floatVal;
this.booleanVal = booleanVal;
this.intVal = intVal;
this.stringVal = stringVal;
this.child = child;
this.parent = parent;
}
public Float getFloatVal() {
return floatVal;
}
......
......@@ -13,6 +13,12 @@ public class GithubAcceptTopicSuggestionInputTO {
public GithubAcceptTopicSuggestionInputTO() {
}
public GithubAcceptTopicSuggestionInputTO(String clientMutationId, String name, String repositoryId) {
this.clientMutationId = clientMutationId;
this.name = name;
this.repositoryId = repositoryId;
}
public String getClientMutationId() {
return clientMutationId;
}
......
......@@ -76,6 +76,47 @@ public class GithubCommitTO implements GithubCloserTO, GithubIssueTimelineItemTO
public GithubCommitTO() {
}
public GithubCommitTO(String abbreviatedOid, Integer additions, GithubPullRequestConnectionTO associatedPullRequests, GithubGitActorTO author, Boolean authoredByCommitter, String authoredDate, GithubBlameTO blame, Integer changedFiles, GithubCommitCommentConnectionTO comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GithubGitActorTO committer, Integer deletions, GithubDeploymentConnectionTO deployments, GithubCommitHistoryConnectionTO history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, GithubCommitConnectionTO parents, String pushedDate, GithubRepositoryTO repository, String resourcePath, GithubGitSignatureTO signature, GithubStatusTO status, String tarballUrl, GithubTreeTO tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, GithubSubscriptionStateTO viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册