Class ChannelFromToEventSubCondition
java.lang.Object
com.github.twitch4j.eventsub.condition.EventSubCondition
com.github.twitch4j.eventsub.condition.ChannelFromToEventSubCondition
- Direct Known Subclasses:
ChannelRaidCondition
public class ChannelFromToEventSubCondition extends EventSubCondition
Generic condition when a broadcaster can be either on the receiving or giving end of the event type.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannelFromToEventSubCondition.ChannelFromToEventSubConditionBuilder<C extends ChannelFromToEventSubCondition,B extends ChannelFromToEventSubCondition.ChannelFromToEventSubConditionBuilder<C,B>>Nested classes/interfaces inherited from class com.github.twitch4j.eventsub.condition.EventSubCondition
EventSubCondition.EventSubConditionBuilder<C extends EventSubCondition,B extends EventSubCondition.EventSubConditionBuilder<C,B>> -
Constructor Summary
Constructors Modifier Constructor Description protectedChannelFromToEventSubCondition(ChannelFromToEventSubCondition.ChannelFromToEventSubConditionBuilder<?,?> b) -
Method Summary
Modifier and Type Method Description static ChannelFromToEventSubCondition.ChannelFromToEventSubConditionBuilder<?,?>builder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetFromBroadcasterUserId()The broadcaster user ID that triggered the channel event you want to get notifications for.java.lang.StringgetToBroadcasterUserId()The broadcaster user ID that received the channel event you want to get notifications for.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ChannelFromToEventSubCondition
protected ChannelFromToEventSubCondition(ChannelFromToEventSubCondition.ChannelFromToEventSubConditionBuilder<?,?> b)
-
-
Method Details
-
builder
-
getFromBroadcasterUserId
public java.lang.String getFromBroadcasterUserId()The broadcaster user ID that triggered the channel event you want to get notifications for. -
getToBroadcasterUserId
public java.lang.String getToBroadcasterUserId()The broadcaster user ID that received the channel event you want to get notifications for. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-