Class SubscriptionData
java.lang.Object
com.github.twitch4j.pubsub.domain.SubscriptionData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The id of the channel where the subscription took placeThe name of the channel where the subscription took placeThe event type for this subscriptionHow many months in total has the receiving user been subscribedThe display name for the user that purchased the subscriptionWhether this sub message was caused by a gift subscriptionDeprecated.Number of months gifted as part of a single, multi-month giftThe display name of the user that received the subscriptionThe id of the user that received the subscriptionThe login name of the user that received the subscriptionHow many months in a row has the receiving user been subscribedThe accompanying message when the subscription was sharedThe type of subscription plan that was purchasedThe name of the subscription plan that was purchasedgetTime()
Deprecated.in favor of getTimestamp()RFC 3339 timestamp of when the subscription took placeThe id for the user that purchased the subscriptionThe login name for the user that purchased the subscriptionint
hashCode()
void
setBenefitEndMonth
(Integer benefitEndMonth) Deprecated.void
setChannelId
(String channelId) Deprecated.void
setChannelName
(String channelName) Deprecated.void
setContext
(SubscriptionType context) Deprecated.void
setCumulativeMonths
(Integer cumulativeMonths) Deprecated.void
setDisplayName
(String displayName) Deprecated.void
Deprecated.void
Deprecated.void
setMultiMonthDuration
(Integer multiMonthDuration) Deprecated.void
setRecipientDisplayName
(String recipientDisplayName) Deprecated.void
setRecipientId
(String recipientId) Deprecated.void
setRecipientUserName
(String recipientUserName) Deprecated.void
setStreakMonths
(Integer streakMonths) Deprecated.void
setSubMessage
(CommerceMessage subMessage) Deprecated.void
setSubPlan
(SubscriptionPlan subPlan) Deprecated.void
setSubPlanName
(String subPlanName) Deprecated.void
setTimestamp
(Instant timestamp) Deprecated.void
Deprecated.void
setUserName
(String userName) Deprecated.toString()
-
Constructor Details
-
SubscriptionData
public SubscriptionData()
-
-
Method Details
-
getRecipientId
The id of the user that received the subscription- Returns:
- the recipient id
-
getRecipientUserName
The login name of the user that received the subscription- Returns:
- the recipient name
-
getRecipientDisplayName
The display name of the user that received the subscription- Returns:
- the recipient display name
-
getBenefitEndMonth
- Returns:
- the new month the subscription will end on, in the case of an extendsub (otherwise null).
- See Also:
-
- Twitch Announcement (but not present in the official documentation)
-
getTime
Deprecated.in favor of getTimestamp()- Returns:
- RFC 3339 timestamp of when the subscription took place
-
getUserName
The login name for the user that purchased the subscription -
getDisplayName
The display name for the user that purchased the subscription -
getChannelName
The name of the channel where the subscription took place -
getUserId
The id for the user that purchased the subscription -
getChannelId
The id of the channel where the subscription took place -
getTimestamp
RFC 3339 timestamp of when the subscription took place -
getSubPlan
The type of subscription plan that was purchased -
getSubPlanName
The name of the subscription plan that was purchased -
getCumulativeMonths
How many months in total has the receiving user been subscribed -
getStreakMonths
How many months in a row has the receiving user been subscribed -
getContext
The event type for this subscription -
getIsGift
Whether this sub message was caused by a gift subscription -
getMultiMonthDuration
Number of months gifted as part of a single, multi-month gift -
getSubMessage
The accompanying message when the subscription was shared -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
setUserName
Deprecated.The login name for the user that purchased the subscription -
setDisplayName
Deprecated.The display name for the user that purchased the subscription -
setChannelName
Deprecated.The name of the channel where the subscription took place -
setUserId
Deprecated.The id for the user that purchased the subscription -
setChannelId
Deprecated.The id of the channel where the subscription took place -
setTimestamp
Deprecated.RFC 3339 timestamp of when the subscription took place -
setSubPlan
Deprecated.The type of subscription plan that was purchased -
setSubPlanName
Deprecated.The name of the subscription plan that was purchased -
setMonths
Deprecated.The number of months the receiving user been subscribed- See Also:
-
setCumulativeMonths
Deprecated.How many months in total has the receiving user been subscribed -
setStreakMonths
Deprecated.How many months in a row has the receiving user been subscribed -
setContext
Deprecated.The event type for this subscription -
setIsGift
Deprecated.Whether this sub message was caused by a gift subscription -
setMultiMonthDuration
Deprecated.Number of months gifted as part of a single, multi-month gift -
setSubMessage
Deprecated.The accompanying message when the subscription was shared -
setBenefitEndMonth
Deprecated. -
setRecipientId
Deprecated. -
setRecipientUserName
Deprecated. -
setRecipientDisplayName
Deprecated. -
getMonths
Deprecated.The number of months the receiving user been subscribed- See Also:
-