Package org.vx68k.bitbucket.webhook
Class BitbucketEvent
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.BitbucketClientObject
-
- org.vx68k.bitbucket.webhook.BitbucketEvent
-
public class BitbucketEvent extends BitbucketClientObject
Event on a Bitbucket repository.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Constructor Summary
Constructors Constructor Description BitbucketEvent(JsonObject eventObject)Constructs this event from a JSON event object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketAccountgetActor()Returns the actor of this event.BitbucketPushgetPush()Returns the push description of this event.BitbucketRepositorygetRepository()Returns the repository of this event.-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObject
equals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
-
-
-
-
Constructor Detail
-
BitbucketEvent
public BitbucketEvent(JsonObject eventObject)
Constructs this event from a JSON event object.- Parameters:
eventObject- JSON event object- Throws:
IllegalArgumentException- if the given JSON object isnull
-
-
Method Detail
-
getActor
public final BitbucketAccount getActor()
Returns the actor of this event.- Returns:
- the actor
-
getRepository
public final BitbucketRepository getRepository()
Returns the repository of this event.- Returns:
- the repository
-
getPush
public final BitbucketPush getPush()
Returns the push description of this event.- Returns:
- the push description
-
-