Package de.coho04.githubapi.entities
Klasse GHAlert
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHAlert
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Alert.
It provides methods for fetching data about the alert such as its number, creation date, url, html url, locations url, state, resolution, resolved at date, resolved by user, secret type, secret type display name, secret, repository, push protection bypassed by user, push protection bypassed status, push protection bypassed at date, resolution comment, and validity.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the creation date of the alert.Returns the GitHub instance associated with the alert.Returns the html url of the alert.Returns the locations url of the alert.intReturns the number of the alert.Returns the date when the push protection was bypassed for the alert.Returns the user who bypassed the push protection of the alert.Returns the repository of the alert.Returns the resolution of the alert.Returns the resolution comment of the alert.Returns the date when the alert was resolved.Returns the user who resolved the alert.Returns the secret of the alert.Returns the secret type of the alert.Returns the display name of the secret type of the alert.getState()Returns the state of the alert.getUrl()Returns the url of the alert.Returns the validity of the alert.booleanReturns the push protection bypassed status of the alert.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon 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
-
GHAlert
Constructs a new GHAlert instance with the provided JSON object and GitHub instance.- Parameter:
jsonObject- the JSON object containing the alert datagithub- the GitHub instance associated with this alert
-
-
Methodendetails
-
getCreatedAt
Returns the creation date of the alert.- Gibt zurück:
- the creation date of the alert
-
getNumber
public int getNumber()Returns the number of the alert.- Gibt zurück:
- the number of the alert
-
getState
Returns the state of the alert.- Gibt zurück:
- the state of the alert
-
getHtmlUrl
Returns the html url of the alert.- Gibt zurück:
- the html url of the alert
-
getUrl
Returns the url of the alert.- Gibt zurück:
- the url of the alert
-
getRepository
Returns the repository of the alert.- Gibt zurück:
- the repository of the alert
-
getPushProtectionBypassedBy
Returns the user who bypassed the push protection of the alert.- Gibt zurück:
- the user who bypassed the push protection of the alert
-
getResolvedBy
Returns the user who resolved the alert.- Gibt zurück:
- the user who resolved the alert
-
getGithub
Returns the GitHub instance associated with the alert.- Gibt zurück:
- the GitHub instance associated with the alert
-
getPushProtectionBypassedAt
Returns the date when the push protection was bypassed for the alert.- Gibt zurück:
- the date when the push protection was bypassed for the alert
-
getResolvedAt
Returns the date when the alert was resolved.- Gibt zurück:
- the date when the alert was resolved
-
getLocationsUrl
Returns the locations url of the alert.- Gibt zurück:
- the locations url of the alert
-
getResolution
Returns the resolution of the alert.- Gibt zurück:
- the resolution of the alert
-
getResolutionComment
Returns the resolution comment of the alert.- Gibt zurück:
- the resolution comment of the alert
-
getSecret
Returns the secret of the alert.- Gibt zurück:
- the secret of the alert
-
getSecretType
Returns the secret type of the alert.- Gibt zurück:
- the secret type of the alert
-
getSecretTypeDisplayName
Returns the display name of the secret type of the alert.- Gibt zurück:
- the display name of the secret type of the alert
-
getValidity
Returns the validity of the alert.- Gibt zurück:
- the validity of the alert
-
isPushProtectionBypassed
public boolean isPushProtectionBypassed()Returns the push protection bypassed status of the alert.- Gibt zurück:
- the push protection bypassed status of the alert
-