Class TwitchSubscriptionGiftEvent
java.lang.Object
tv.phantombot.event.Event
tv.phantombot.event.twitch.TwitchEvent
tv.phantombot.event.twitch.subscriber.TwitchSubscriptionGiftEvent
- Direct Known Subclasses:
TwitchAnonymousSubscriptionGiftEvent
-
Constructor Summary
ConstructorsConstructorDescriptionTwitchSubscriptionGiftEvent
(String username, String recipient, String plan) Class constructor.TwitchSubscriptionGiftEvent
(String username, String recipient, String months, String plan) Class constructor.TwitchSubscriptionGiftEvent
(String username, String recipient, String months, String plan, String giftedMonths) Class constructor.TwitchSubscriptionGiftEvent
(String username, String recipient, String months, String plan, String giftedMonths, boolean fromBulk) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromBulk()
Indicates if this gift subscription is likely from a bulk gift-sub eventMethod that returns the number of months gifted.Method that returns the months, can be 0.getPlan()
Method that returns the subscription plan.Method that returns the recipient.Method that returns the gifted the subscription.
-
Constructor Details
-
TwitchSubscriptionGiftEvent
Class constructor.- Parameters:
username
-recipient
-plan
-
-
TwitchSubscriptionGiftEvent
Class constructor.- Parameters:
username
-recipient
-months
-plan
-
-
TwitchSubscriptionGiftEvent
public TwitchSubscriptionGiftEvent(String username, String recipient, String months, String plan, String giftedMonths) Class constructor.- Parameters:
username
-recipient
-months
-plan
-giftedMonths
-
-
TwitchSubscriptionGiftEvent
public TwitchSubscriptionGiftEvent(String username, String recipient, String months, String plan, String giftedMonths, boolean fromBulk) Class constructor.- Parameters:
username
-recipient
-months
-plan
-giftedMonths
-fromBulk
-
-
-
Method Details
-
getUsername
Method that returns the gifted the subscription.- Returns:
- username
-
getRecipient
Method that returns the recipient.- Returns:
- recipient
-
getMonths
Method that returns the months, can be 0.- Returns:
- months
-
getGiftedMonths
Method that returns the number of months gifted.- Returns:
- months
-
getPlan
Method that returns the subscription plan. (1000, 2000, 3000 and Prime)- Returns:
- plan
-
fromBulk
public boolean fromBulk()Indicates if this gift subscription is likely from a bulk gift-sub event- Returns:
-