Package com.github.twitch4j.helix.domain
Klasse BanUserInput
java.lang.Object
com.github.twitch4j.helix.domain.BanUserInput
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected booleanbooleanSpecify for a timeout, otherwise leave null for a ban.The reason the user is being banned or put in a timeout.The ID of the user to ban or put in a timeout.inthashCode()toString()withDuration(@Nullable Integer duration) Specify for a timeout, otherwise leave null for a ban.withReason(String reason) The reason the user is being banned or put in a timeout.withUserId(String userId) The ID of the user to ban or put in a timeout.
-
Konstruktordetails
-
BanUserInput
public BanUserInput() -
BanUserInput
-
-
Methodendetails
-
builder
-
toBuilder
-
withUserId
The ID of the user to ban or put in a timeout.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withReason
The reason the user is being banned or put in a timeout. The text is user defined and limited to a maximum of 500 characters.- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDuration
Specify for a timeout, otherwise leave null for a ban.To ban a user indefinitely, don’t include this field. To put a user in a timeout, include this field and specify the timeout period, in seconds.
The minimum timeout is 1 second and the maximum is 1,209,600 seconds (2 weeks).
To end a user’s timeout early, set this field to 1, or send an Unban user request.
- Gibt zurück:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getUserId
The ID of the user to ban or put in a timeout. -
getReason
The reason the user is being banned or put in a timeout. The text is user defined and limited to a maximum of 500 characters. -
getDuration
Specify for a timeout, otherwise leave null for a ban.To ban a user indefinitely, don’t include this field. To put a user in a timeout, include this field and specify the timeout period, in seconds.
The minimum timeout is 1 second and the maximum is 1,209,600 seconds (2 weeks).
To end a user’s timeout early, set this field to 1, or send an Unban user request.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-