Class InboundHostEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.channel.InboundHostEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
@Unofficial public final class InboundHostEvent extends TwitchEvent
Fired when the authenticated channel to the TwitchChat instance was hosted by another user.
Not officially documented by Twitch so this could stop working at any time.
-
Constructor Summary
Constructors Constructor Description InboundHostEvent(java.lang.String hostTarget, java.lang.String hosterName) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetHosterName()Display name of the user that just hosted your channel.java.lang.StringgetHostTarget()Login name of the channel that was hosted (i.e., the user passed in chatAccount).inthashCode()java.lang.StringtoString()Methods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatMethods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediatorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
InboundHostEvent
public InboundHostEvent(java.lang.String hostTarget, java.lang.String hosterName)
-
-
Method Details
-
getHostTarget
public java.lang.String getHostTarget()Login name of the channel that was hosted (i.e., the user passed in chatAccount). -
getHosterName
public java.lang.String getHosterName()Display name of the user that just hosted your channel. -
toString
public java.lang.String toString()- Overrides:
toStringin classTwitchEvent
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classTwitchEvent
-
canEqual
protected boolean canEqual(java.lang.Object other)- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-