public ChangeIssueStateClient(Context context, IssueInfo info, IssueState state) { super(context); this.info = info; this.issueRequest = new IssueRequest(); issueRequest.state = state; }
public static IssueRequest issueFull(Issue issue, String body, String title) { IssueRequest request = new IssueRequest(); request.body = body; request.title = title; if (issue.assignee != null) { request.assignee = issue.assignee.login; } if (issue.milestone != null) { request.milestone = issue.milestone.number; } request.state = issue.state; int nrLabels = 0; if (issue.labels != null) { nrLabels = issue.labels.size(); } request.labels = new String[nrLabels]; for (int i = 0; i < nrLabels; i++) { request.labels[i] = issue.labels.get(i).name; } return request; }