Class CreatorGoal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
An ID that uniquely identifies the broadcaster.The broadcaster’s user handle.The broadcaster’s display name.The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal.The current value.A description of the goal, if specified.getId()
An ID that uniquely identifies this goal.The goal’s target value.getType()
The type of goal.int
hashCode()
toString()
-
Constructor Details
-
CreatorGoal
public CreatorGoal()
-
-
Method Details
-
getId
An ID that uniquely identifies this goal. -
getBroadcasterId
An ID that uniquely identifies the broadcaster. -
getBroadcasterName
The broadcaster’s display name. -
getBroadcasterLogin
The broadcaster’s user handle. -
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 type is
GoalType.FOLLOWERS
, this field is set to the broadcaster's current number of followers. This number increases with new followers and decreases when users unfollow the broadcaster.If type is
GoalType.SUBSCRIPTIONS
, this field is increased and decreased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased or decreased by 2, not 1.If type is
GoalType.SUB_COUNT
, this field is increased by 1 for each new subscription and decreased by 1 for each user that unsubscribes.If type is
GoalType.NEW_SUBSCRIPTIONS
, this field is increased by the points value associated with the subscription tier. For example, if a tier-two subscription is worth 2 points, this field is increased by 2, not 1.If type is
GoalType.NEW_SUB_COUNT
, this field is increased by 1 for each new subscription.If type is
GoalType.BITS
, this field is increased by the number of bits cheered.If type is
GoalType.CHEERS
, this field is increased by 1 for each new cheer.- See Also:
-
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.
-
getCreatedAt
The UTC timestamp in RFC 3339 format, which indicates when the broadcaster created the goal. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-