CreatorGoal

@Serializable
data class CreatorGoal(val id: String, val broadcasterId: String, val broadcasterName: String, val broadcasterLogin: String, val type: String, val description: String, val currentAmount: Int, val targetAmount: Int, val createdAt: Instant)

Represents a creator goal from the Twitch Helix API.

See also

Constructors

Link copied to clipboard
constructor(id: String, broadcasterId: String, broadcasterName: String, broadcasterLogin: String, type: String, description: String, currentAmount: Int, targetAmount: Int, createdAt: Instant)

Properties

Link copied to clipboard
@SerialName(value = "broadcaster_id")
val broadcasterId: String

an ID that identifies the broadcaster that created the goal.

Link copied to clipboard
@SerialName(value = "broadcaster_login")
val broadcasterLogin: String

the broadcaster's login name.

Link copied to clipboard
@SerialName(value = "broadcaster_name")
val broadcasterName: String

the broadcaster's display name.

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Instant

the UTC date and time that the broadcaster created the goal.

Link copied to clipboard
@SerialName(value = "current_amount")
val currentAmount: Int

the goal's current value. The goal's type determines how this value is increased or decreased.

Link copied to clipboard

a description of the goal. Is an empty string if not specified.

Link copied to clipboard
val id: String

an ID that identifies this goal.

Link copied to clipboard
@SerialName(value = "target_amount")
val targetAmount: Int

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.

Link copied to clipboard

the type of goal. Possible values are: follower, subscription, subscription_count, new_subscription, new_subscription_count.