Package com.github.twitch4j.events
Class ChannelClipCreatedEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.events.ChannelClipCreatedEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Called when a new clip is created in a channel.
Fired by TwitchClientHelper
; so this event must explicitly be enabled for specific channels.
Due to Twitch heavily caching the get clips endpoint, these creation events can have multi-minute delays.
-
Constructor Summary
ConstructorDescriptionChannelClipCreatedEvent
(EventChannel channel, Clip clip) Creates a newChannelClipCreatedEvent
instance. -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
ChannelClipCreatedEvent
Creates a newChannelClipCreatedEvent
instance.- Parameters:
channel
- The channel where the clip was created.clip
- The clip that was created.
-
-
Method Details
-
getCreatingUser
- Returns:
- the user that created the clip
-
getChannel
The channel where the clip was created. -
getClip
The clip that was created. -
toString
- Overrides:
toString
in classTwitchEvent
-
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-