Package com.github.twitch4j.helix.domain
Class ModeratorEvent
java.lang.Object
com.github.twitch4j.helix.domain.ModeratorEvent
public class ModeratorEvent
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModeratorEvent.ModeratorEventData -
Constructor Summary
Constructors Constructor Description ModeratorEvent() -
Method Summary
Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)@NonNull ModeratorEvent.ModeratorEventDatagetEventData()java.time.LocalDateTimegetEventTimestamp()Deprecated.in favor of getTimestamp@NonNull java.lang.StringgetEventType()Displays "moderation.user.ban" or "moderation.user.unban".@NonNull java.lang.StringgetId()Event ID@NonNull java.time.InstantgetTimestamp()RFC3339 formatted timestamp for events.@NonNull java.lang.StringgetVersion()Returns the version of the endpoint.inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ModeratorEvent
public ModeratorEvent()
-
-
Method Details
-
getEventTimestamp
@Deprecated public java.time.LocalDateTime getEventTimestamp()Deprecated.in favor of getTimestamp- Returns:
- the timestamp of when the event took place
-
getId
@NonNull public @NonNull java.lang.String getId()Event ID -
getEventType
@NonNull public @NonNull java.lang.String getEventType()Displays "moderation.user.ban" or "moderation.user.unban". -
getTimestamp
@NonNull public @NonNull java.time.Instant getTimestamp()RFC3339 formatted timestamp for events. -
getVersion
@NonNull public @NonNull java.lang.String getVersion()Returns the version of the endpoint. -
getEventData
- See Also:
ModeratorEvent.ModeratorEventData
-
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
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-