Package com.github.twitch4j.helix.domain
Class Subscription
java.lang.Object
com.github.twitch4j.helix.domain.Subscription
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull String
User ID of the broadcaster.@NonNull String
Login name of the broadcaster.@NonNull String
Display name of the broadcaster.ID of the user who gifted the sub.If the subscription was gifted, this is the login of the gifter.Display name of the user who gifted the sub.Determines if the subscription is a gift subscription.Deprecated.will be removed in favor of .getPlanName()@NonNull String
Name of the subscription.@NonNull String
getTier()
Type of subscription (Tier 1, Tier 2, Tier 3).@NonNull String
ID of the subscribed user.@NonNull String
Login of the subscribed user.@NonNull String
Display name of the subscribed user.int
hashCode()
toString()
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
getPlan_name
Deprecated.will be removed in favor of .getPlanName()- Returns:
- the subscription plan name
-
getBroadcasterId
User ID of the broadcaster. -
getBroadcasterLogin
Login name of the broadcaster. -
getBroadcasterName
Display name of the broadcaster. -
getIsGift
Determines if the subscription is a gift subscription. -
getGifterId
ID of the user who gifted the sub. -
getGifterLogin
If the subscription was gifted, this is the login of the gifter. -
getGifterName
Display name of the user who gifted the sub. -
getTier
Type of subscription (Tier 1, Tier 2, Tier 3). 1000 = Tier 1, 2000 = Tier 2, 3000 = Tier 3 subscriptions. -
getPlanName
Name of the subscription. -
getUserId
ID of the subscribed user. -
getUserLogin
Login of the subscribed user. -
getUserName
Display name of the subscribed user. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-