3f4db112b1
Some checks failed
continuous-integration/drone/push Build is failing
Merge branch 'master' into refactor_issues_call Remove credits, add donators (#268) Merge branch 'master' into 264-remove-credits Merge pull request 'Support for c header files' (#266) from 265-files-support-in-file-viewer into master Reviewed-on: #266 Remove credits, add donators support for c header files Reviewed-on: #268 Merge pull request 'Support for c header files' (#266) from 265-files-support-in-file-viewer into master Reviewed-on: #266 support for c header files fix Merge branch 'master' into refactor_issues_call Support pdf files in file viewer (#259) auto convert EOL this fix it for me fix layout implement support for pdf files in file viewer Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: #259 Reviewed-by: 6543 <6543@noreply.gitea.io> Make DueDate optional on MilestoneCreaton (#252) Merge branch 'master' into milestone-DueDate-optional_240 add check again if gitea is older than 1.10.0 ... Crowdin [2020-01-04] + add Latvian (#253) update Translators add Latvian update Crowdin Co-authored-by: 6543 <6543@obermui.de> make DueDate optional on MilestoneCreaton Co-authored-by: 6543 <6543@obermui.de> Crowdin [2020-01-04] + add Latvian (#253) update Translators add Latvian update Crowdin Co-authored-by: 6543 <6543@obermui.de> Merge branch '51-custom-fonts' of gitnex/GitNex into master Reviewed-by: 6543 <6543@noreply.gitea.io> Implement across the whole app Implementation of custom fonts app wide Merge branch 'crowdin_2019-12-25' of gitnex/GitNex into master add user to the “new issue” assignees dialog refactor.start() update from crowdin Merge branch 'backport-243' of gitnex/GitNex into master backport url slashes fix Merge branch 'fix-238' of gitnex/GitNex into master fix Merge branch 'backport-235' of gitnex/GitNex into master backport fix #235 Merge branch 'backport-232' of gitnex/GitNex into master show all issues and prs Merge branch '206-repos-in-explore-screen' of gitnex/GitNex into master Load default list of explore repositories Merge branch '225-backport' of gitnex/GitNex into master copy and support files backport - #225 Merge branch '226-backport' of gitnex/GitNex into master fix alignments backport Co-authored-by: M M Arif <mmarif@swatian.com> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: #199
260 lines
4.8 KiB
Java
260 lines
4.8 KiB
Java
package org.mian.gitnex.models;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Author M M Arif
|
|
*/
|
|
|
|
public class Issues {
|
|
|
|
private int id;
|
|
private String url;
|
|
private int number;
|
|
private String title;
|
|
private String body;
|
|
private String state;
|
|
private int comments;
|
|
private Date created_at;
|
|
private Date updated_at;
|
|
private Date due_date;
|
|
private Date closed_at;
|
|
|
|
private userObject user;
|
|
private List<labelsObject> labels;
|
|
private pullRequestObject pull_request;
|
|
private milestoneObject milestone;
|
|
private List<assigneesObject> assignees;
|
|
|
|
public Issues(String body) {
|
|
this.body = body;
|
|
}
|
|
|
|
public class userObject {
|
|
|
|
private int id;
|
|
private String login;
|
|
private String full_name;
|
|
private String email;
|
|
private String avatar_url;
|
|
private String language;
|
|
private String username;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getLogin() {
|
|
return login;
|
|
}
|
|
|
|
public String getFull_name() {
|
|
return full_name;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public String getAvatar_url() {
|
|
return avatar_url;
|
|
}
|
|
|
|
public String getLanguage() {
|
|
return language;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
}
|
|
|
|
public class labelsObject {
|
|
|
|
private int id;
|
|
private String name;
|
|
private String color;
|
|
private String url;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getColor() {
|
|
return color;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
}
|
|
|
|
public class pullRequestObject {
|
|
|
|
private boolean merged;
|
|
private String merged_at;
|
|
|
|
public boolean isMerged() {
|
|
return merged;
|
|
}
|
|
|
|
public String getMerged_at() {
|
|
return merged_at;
|
|
}
|
|
}
|
|
|
|
public class milestoneObject {
|
|
|
|
private int id;
|
|
private String title;
|
|
private String description;
|
|
private String state;
|
|
private String open_issues;
|
|
private String closed_issues;
|
|
private String closed_at;
|
|
private String due_on;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public String getOpen_issues() {
|
|
return open_issues;
|
|
}
|
|
|
|
public String getClosed_issues() {
|
|
return closed_issues;
|
|
}
|
|
|
|
public String getClosed_at() {
|
|
return closed_at;
|
|
}
|
|
|
|
public String getDue_on() {
|
|
return due_on;
|
|
}
|
|
}
|
|
|
|
public class assigneesObject {
|
|
|
|
private int id;
|
|
private String login;
|
|
private String full_name;
|
|
private String email;
|
|
private String avatar_url;
|
|
private String language;
|
|
private String username;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getLogin() {
|
|
return login;
|
|
}
|
|
|
|
public String getFull_name() {
|
|
return full_name;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public String getAvatar_url() {
|
|
return avatar_url;
|
|
}
|
|
|
|
public String getLanguage() {
|
|
return language;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public int getNumber() {
|
|
return number;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public String getBody() {
|
|
return body;
|
|
}
|
|
|
|
public String getState() {
|
|
return state;
|
|
}
|
|
|
|
public int getComments() {
|
|
return comments;
|
|
}
|
|
|
|
public Date getCreated_at() {
|
|
return created_at;
|
|
}
|
|
|
|
public Date getUpdated_at() {
|
|
return updated_at;
|
|
}
|
|
|
|
public Date getDue_date() {
|
|
return due_date;
|
|
}
|
|
|
|
public Date getClosed_at() {
|
|
return closed_at;
|
|
}
|
|
|
|
public userObject getUser() {
|
|
return user;
|
|
}
|
|
|
|
public List<labelsObject> getLabels() {
|
|
return labels;
|
|
}
|
|
|
|
public pullRequestObject getPull_request() {
|
|
return pull_request;
|
|
}
|
|
|
|
public milestoneObject getMilestone() {
|
|
return milestone;
|
|
}
|
|
|
|
public List<assigneesObject> getAssignees() {
|
|
return assignees;
|
|
}
|
|
|
|
}
|