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() |
String |
getActorLogin()
Quick way to just get the actor of the login.
|
Date |
getCreatedAt() |
GHOrganization |
getOrganization() |
<T extends GHEventPayload> |
getPayload(Class<T> type)
Retrieves the payload.
|
GHRepository |
getRepository()
Repository where the change was made.
|
GHEvent |
getType() |
public GHEvent getType()
public Date getCreatedAt()
public GHRepository getRepository() throws IOException
IOExceptionpublic GHUser getActor() throws IOException
IOExceptionpublic String getActorLogin() throws IOException
IOExceptionpublic GHOrganization getOrganization() throws IOException
IOExceptionpublic <T extends GHEventPayload> T getPayload(Class<T> type) throws IOException
type - Specify one of the GHEventPayload subtype that defines a type-safe access to the payload.
This must match the event type.IOExceptionCopyright © 2014. All rights reserved.