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