|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kohsuke.github.GHEventInfo
public class GHEventInfo
Represents an event.
| Nested Class Summary | |
|---|---|
static class |
GHEventInfo.GHEventRepository
Inside the event JSON model, GitHub uses a slightly different format. |
| Constructor Summary | |
|---|---|
GHEventInfo()
|
|
| Method Summary | ||
|---|---|---|
GHUser |
getActor()
|
|
String |
getActorLogin()
Quick way to just get the actor of the login. |
|
Date |
getCreatedAt()
|
|
GHOrganization |
getOrganization()
|
|
|
getPayload(Class<T> type)
Retrieves the payload. |
|
GHRepository |
getRepository()
Repository where the change was made. |
|
GHEvent |
getType()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GHEventInfo()
| Method Detail |
|---|
public GHEvent getType()
public Date getCreatedAt()
public GHRepository getRepository()
throws IOException
IOException
public GHUser getActor()
throws IOException
IOException
public String getActorLogin()
throws IOException
IOException
public GHOrganization getOrganization()
throws IOException
IOException
public <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.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||