org.eclipse.egit.github.core.event
Class Event

java.lang.Object
  extended by org.eclipse.egit.github.core.event.Event
All Implemented Interfaces:
Serializable

public class Event
extends Object
implements Serializable

Event model class.

See Also:
Serialized Form

Field Summary
static String TYPE_COMMIT_COMMENT
          Event type denoting a CommitCommentPayload
static String TYPE_CREATE
          Event type denoting a CreatePayload
static String TYPE_DELETE
          Event type denoting a DeletePayload
static String TYPE_DOWNLOAD
          Event type denoting a DownloadPayload
static String TYPE_FOLLOW
          Event type dneoting a FollowPayload
static String TYPE_FORK
          Event type denoting a ForkPayload
static String TYPE_FORK_APPLY
          Event type denoting a ForkApplyPayload
static String TYPE_GIST
          Event type denoting a GistPayload
static String TYPE_GOLLUM
          Event type denoting a GollumPayload
static String TYPE_ISSUE_COMMENT
          Event type denoting a IssueCommentPayload
static String TYPE_ISSUES
          Event type denoting a IssuesPayload
static String TYPE_MEMBER
          Event type denoting a MemberPayload
static String TYPE_PUBLIC
          Event type denoting a PublicPayload
static String TYPE_PULL_REQUEST
          Event type denoting a PullRequestPayload
static String TYPE_PULL_REQUEST_REVIEW_COMMENT
          Event type denoting a PullRequestReviewCommentPayload
static String TYPE_PUSH
          Event type denoting a PushPayload
static String TYPE_TEAM_ADD
          Event type denoting a TeamAddPayload
static String TYPE_WATCH
          Event type denoting a WatchPayload
 
Constructor Summary
Event()
           
 
Method Summary
 User getActor()
           
 Date getCreatedAt()
           
 String getId()
           
 User getOrg()
           
 EventPayload getPayload()
           
 EventRepository getRepo()
           
 String getType()
           
 boolean isPublic()
           
 Event setActor(User actor)
           
 Event setCreatedAt(Date createdAt)
           
 Event setId(String id)
           
 Event setOrg(User org)
           
 Event setPayload(EventPayload payload)
           
 Event setPublic(boolean isPublic)
           
 Event setRepo(EventRepository repo)
           
 Event setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_COMMIT_COMMENT

public static final String TYPE_COMMIT_COMMENT
Event type denoting a CommitCommentPayload

See Also:
Constant Field Values

TYPE_CREATE

public static final String TYPE_CREATE
Event type denoting a CreatePayload

See Also:
Constant Field Values

TYPE_DELETE

public static final String TYPE_DELETE
Event type denoting a DeletePayload

See Also:
Constant Field Values

TYPE_DOWNLOAD

public static final String TYPE_DOWNLOAD
Event type denoting a DownloadPayload

See Also:
Constant Field Values

TYPE_FOLLOW

public static final String TYPE_FOLLOW
Event type dneoting a FollowPayload

See Also:
Constant Field Values

TYPE_FORK

public static final String TYPE_FORK
Event type denoting a ForkPayload

See Also:
Constant Field Values

TYPE_FORK_APPLY

public static final String TYPE_FORK_APPLY
Event type denoting a ForkApplyPayload

See Also:
Constant Field Values

TYPE_GIST

public static final String TYPE_GIST
Event type denoting a GistPayload

See Also:
Constant Field Values

TYPE_GOLLUM

public static final String TYPE_GOLLUM
Event type denoting a GollumPayload

See Also:
Constant Field Values

TYPE_ISSUE_COMMENT

public static final String TYPE_ISSUE_COMMENT
Event type denoting a IssueCommentPayload

See Also:
Constant Field Values

TYPE_ISSUES

public static final String TYPE_ISSUES
Event type denoting a IssuesPayload

See Also:
Constant Field Values

TYPE_MEMBER

public static final String TYPE_MEMBER
Event type denoting a MemberPayload

See Also:
Constant Field Values

TYPE_PUBLIC

public static final String TYPE_PUBLIC
Event type denoting a PublicPayload

See Also:
Constant Field Values

TYPE_PULL_REQUEST

public static final String TYPE_PULL_REQUEST
Event type denoting a PullRequestPayload

See Also:
Constant Field Values

TYPE_PULL_REQUEST_REVIEW_COMMENT

public static final String TYPE_PULL_REQUEST_REVIEW_COMMENT
Event type denoting a PullRequestReviewCommentPayload

See Also:
Constant Field Values

TYPE_PUSH

public static final String TYPE_PUSH
Event type denoting a PushPayload

See Also:
Constant Field Values

TYPE_TEAM_ADD

public static final String TYPE_TEAM_ADD
Event type denoting a TeamAddPayload

See Also:
Constant Field Values

TYPE_WATCH

public static final String TYPE_WATCH
Event type denoting a WatchPayload

See Also:
Constant Field Values
Constructor Detail

Event

public Event()
Method Detail

getType

public String getType()
Returns:
type

setType

public Event setType(String type)
Parameters:
type -
Returns:
this Event

isPublic

public boolean isPublic()
Returns:
isPublic

setPublic

public Event setPublic(boolean isPublic)
Parameters:
isPublic -
Returns:
this Event

getRepo

public EventRepository getRepo()
Returns:
the repo

setRepo

public Event setRepo(EventRepository repo)
Parameters:
repo -
Returns:
this Event

getActor

public User getActor()
Returns:
the actor

setActor

public Event setActor(User actor)
Parameters:
actor -
Returns:
this Event

getOrg

public User getOrg()
Returns:
the org

setOrg

public Event setOrg(User org)
Parameters:
org -
Returns:
this Event

getCreatedAt

public Date getCreatedAt()
Returns:
the createdAt

setCreatedAt

public Event setCreatedAt(Date createdAt)
Parameters:
createdAt -
Returns:
this Event

getPayload

public EventPayload getPayload()
Returns:
payload

setPayload

public Event setPayload(EventPayload payload)
Parameters:
payload -
Returns:
this event

getId

public String getId()
Returns:
id

setId

public Event setId(String id)
Parameters:
id -
Returns:
this event


Copyright © 2012. All Rights Reserved.