Class TemporaryRestrictEvent
java.lang.Object
io.github.bbobbogi.stream4j.chzzk.chat.TemporaryRestrictEvent
Temporary restriction event.
Contains temporary restriction information for a chat user.
Sent through EVENT command (cmd: 93006), and type is "TEMPORARY_RESTRICT".
Restriction duration is in seconds, and times is the accumulated restriction count.
- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the restriction creation time.Returns the raw restriction creation time string.intReturns the restriction duration in seconds.Returns the raw JSON string.intgetTimes()Returns the accumulated restriction count.getType()Returns the event type.Returns the restricted user's ID hash.
-
Field Details
-
rawJson
-
-
Constructor Details
-
TemporaryRestrictEvent
public TemporaryRestrictEvent()Creates aTemporaryRestrictEvent.
-
-
Method Details
-
getDuration
public int getDuration()Returns the restriction duration in seconds.- Returns:
- restriction duration in seconds
-
getTimes
public int getTimes()Returns the accumulated restriction count.- Returns:
- accumulated restriction count
-
getUserIdHash
Returns the restricted user's ID hash.- Returns:
- user ID hash
-
getCreatedTimeRaw
Returns the raw restriction creation time string.- Returns:
- raw restriction creation time string
-
getCreatedTime
Returns the restriction creation time.- Returns:
- restriction creation time (nullable)
-
getType
Returns the event type.- Returns:
- event type
-
getRawJson
Returns the raw JSON string.- Returns:
- raw JSON string
-