Record Class TwitchClient
java.lang.Object
java.lang.Record
net.flectone.pulse.module.integration.twitch.model.TwitchClient
-
Constructor Summary
ConstructorsConstructorDescriptionTwitchClient(@NonNull String token, @NonNull String identityProvider, @NonNull FPlayer sender, @NonNull com.github.twitch4j.TwitchClient client) Creates an instance of aTwitchClientrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull com.github.twitch4j.TwitchClientclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NonNull StringReturns the value of theidentityProviderrecord component.@NonNull FPlayersender()Returns the value of thesenderrecord component.@NonNull Stringtoken()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TwitchClient
public TwitchClient(@NonNull String token, @NonNull String identityProvider, @NonNull FPlayer sender, @NonNull com.github.twitch4j.TwitchClient client) Creates an instance of aTwitchClientrecord class.- Parameters:
token- the value for thetokenrecord componentidentityProvider- the value for theidentityProviderrecord componentsender- the value for thesenderrecord componentclient- the value for theclientrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
identityProvider
Returns the value of theidentityProviderrecord component.- Returns:
- the value of the
identityProviderrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
client
public @NonNull com.github.twitch4j.TwitchClient client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-