Klasse GHIssue
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.bases.ClassBase
de.coho04.githubapi.entities.repositories.GHIssue
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
Represents a GitHub issue.
This class is a part of the GitHub API library.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()Closes the issue.Returns the reason for the issue being locked.Returns the user assigned to the issue.Returns the users assigned to the issue.Returns the author association of the issue.getBody()Returns the body of the issue.Returns the date and time when the issue was closed.intReturns the number of comments on the issue.Returns the URL of the issue comments.Returns the date and time when the issue was created.Returns the labels of the issue.Returns the URL of the issue labels.Returns the milestone of the issue.intReturns the issue number.Returns the app via which the issue was performed.Returns the URL of the repository where the issue is located.getState()Returns the state of the issue.Returns the reason for the state of the issue.Returns the URL of the issue timeline.getTitle()Returns the title of the issue.Returns the date and time when the issue was last updated.getUser()Returns the user who created the issue.booleanisDraft()Returns whether the issue is a draft.booleanisLocked()Returns whether the issue is locked.org.json.JSONObjectConverts this ClassBase object to a JSONObject.Von Klasse geerbte Methoden de.coho04.githubapi.bases.ClassBase
getEventsUrl, getHtmlUrl, getId, getNodeId, getUrlVon Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrlVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHIssue
Constructs a GHIssue object from a JSONObject.- Parameter:
jsonObject- JSONObject representing a GitHub issue.
-
-
Methodendetails
-
toJSONObject
public org.json.JSONObject toJSONObject()Beschreibung aus Klasse kopiert:ClassBaseConverts this ClassBase object to a JSONObject.- Setzt außer Kraft:
toJSONObjectin KlasseClassBase- Gibt zurück:
- a JSONObject representation of this ClassBase object.
-
close
public void close()Closes the issue. -
getNumber
public int getNumber()Returns the issue number.- Gibt zurück:
- the issue number
-
getComments
public int getComments()Returns the number of comments on the issue.- Gibt zurück:
- the number of comments
-
getActiveLockReason
Returns the reason for the issue being locked.- Gibt zurück:
- the reason for the issue being locked
-
getAuthorAssociation
Returns the author association of the issue.- Gibt zurück:
- the author association
-
getBody
Returns the body of the issue.- Gibt zurück:
- the body of the issue
-
getClosedAt
Returns the date and time when the issue was closed.- Gibt zurück:
- the date and time when the issue was closed
-
getCommentsUrl
Returns the URL of the issue comments.- Gibt zurück:
- the URL of the issue comments
-
getCreatedAt
Returns the date and time when the issue was created.- Gibt zurück:
- the date and time when the issue was created
-
getLabelsUrl
Returns the URL of the issue labels.- Gibt zurück:
- the URL of the issue labels
-
getMilestone
Returns the milestone of the issue.- Gibt zurück:
- the milestone of the issue
-
getPerformedViaGithubApp
Returns the app via which the issue was performed.- Gibt zurück:
- the app via which the issue was performed
-
getRepositoryUrl
Returns the URL of the repository where the issue is located.- Gibt zurück:
- the URL of the repository where the issue is located
-
getState
Returns the state of the issue.- Gibt zurück:
- the state of the issue
-
getStateReason
Returns the reason for the state of the issue.- Gibt zurück:
- the reason for the state of the issue
-
getTimelineUrl
Returns the URL of the issue timeline.- Gibt zurück:
- the URL of the issue timeline
-
getTitle
Returns the title of the issue.- Gibt zurück:
- the title of the issue
-
getUpdatedAt
Returns the date and time when the issue was last updated.- Gibt zurück:
- the date and time when the issue was last updated
-
isDraft
public boolean isDraft()Returns whether the issue is a draft.- Gibt zurück:
- true if the issue is a draft, false otherwise
-
isLocked
public boolean isLocked()Returns whether the issue is locked.- Gibt zurück:
- true if the issue is locked, false otherwise
-
getUser
Returns the user who created the issue.- Gibt zurück:
- the user who created the issue
-
getAssignee
Returns the user assigned to the issue.- Gibt zurück:
- the user assigned to the issue
-
getLabels
Returns the labels of the issue.- Gibt zurück:
- the labels of the issue
-
getAssignees
Returns the users assigned to the issue.- Gibt zurück:
- the users assigned to the issue
-