Class TemporaryRestrictEvent

java.lang.Object
io.github.bbobbogi.stream4j.chzzk.chat.TemporaryRestrictEvent

public class TemporaryRestrictEvent extends Object
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 Details

    • rawJson

      public String rawJson
  • Constructor Details

  • 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

      public String getUserIdHash()
      Returns the restricted user's ID hash.
      Returns:
      user ID hash
    • getCreatedTimeRaw

      public String getCreatedTimeRaw()
      Returns the raw restriction creation time string.
      Returns:
      raw restriction creation time string
    • getCreatedTime

      public LocalDateTime getCreatedTime()
      Returns the restriction creation time.
      Returns:
      restriction creation time (nullable)
    • getType

      public String getType()
      Returns the event type.
      Returns:
      event type
    • getRawJson

      public String getRawJson()
      Returns the raw JSON string.
      Returns:
      raw JSON string