public class GHEventInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GHEventInfo.GHEventRepository
Inside the event JSON model, GitHub uses a slightly different format.
|
| Constructor and Description |
|---|
GHEventInfo() |
| Modifier and Type | Method and Description |
|---|---|
GHUser |
getActor()
Gets actor.
|
String |
getActorLogin()
Gets actor login.
|
Date |
getCreatedAt()
Gets created at.
|
long |
getId()
Gets id.
|
GHOrganization |
getOrganization()
Gets organization.
|
<T extends GHEventPayload> |
getPayload(Class<T> type)
Retrieves the payload.
|
GHRepository |
getRepository()
Gets repository.
|
GHEvent |
getType()
Gets type.
|
public GHEvent getType()
public long getId()
public Date getCreatedAt()
public GHRepository getRepository() throws IOException
IOException - on errorpublic GHUser getActor() throws IOException
GHUser actor for this event.IOException - on errorpublic String getActorLogin() throws IOException
IOException - on errorpublic GHOrganization getOrganization() throws IOException
IOException - the io exceptionpublic <T extends GHEventPayload> T getPayload(Class<T> type) throws IOException
T - the type parametertype - Specify one of the GHEventPayload subtype that defines a type-safe access to the payload. This
must match the event type.IOException - if payload cannot be parsedCopyright © 2020. All rights reserved.