Class CreatorGoalsEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubChannelEvent
com.github.twitch4j.eventsub.events.CreatorGoalsEvent
- Direct Known Subclasses:
CreatorGoalsBeginEvent
,CreatorGoalsEndEvent
,CreatorGoalsProgressEvent
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The current value.A description of the goal, if specified.getId()
An ID that identifies this event.The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal.The goal’s target value.getType()
The type of goal.int
hashCode()
toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
CreatorGoalsEvent
public CreatorGoalsEvent()
-
-
Method Details
-
getId
An ID that identifies this event. -
getType
The type of goal. -
getDescription
A description of the goal, if specified.The description may contain a maximum of 40 characters.
-
getCurrentAmount
The current value.If the goal is to increase followers, this field is set to the current number of followers. This number increases with new followers and decreases if users unfollow the channel.
For subscriptions, current_amount is increased and decreased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, current_amount is increased or decreased by 2, not 1.
-
getTargetAmount
The goal’s target value.For example, if the broadcaster has 200 followers before creating the goal, and their goal is to double that number, this field is set to 400.
-
getStartedAt
The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal. -
toString
- Overrides:
toString
in classEventSubChannelEvent
-
equals
- Overrides:
equals
in classEventSubChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubChannelEvent
-