Package lambda.session
Record Class JoinRequest
java.lang.Object
java.lang.Record
lambda.session.JoinRequest
- Record Components:
roomName- Room name to join.joinAuthToken- Guest join token.language- Guest-selected language.
Request payload for joining an existing translation session.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinRequest(String roomName, String joinAuthToken, String language) Creates an instance of aJoinRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejoinAuthTokenrecord component.language()Returns the value of thelanguagerecord component.roomName()Returns the value of theroomNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoinRequest
Creates an instance of aJoinRequestrecord class.- Parameters:
roomName- the value for theroomNamerecord componentjoinAuthToken- the value for thejoinAuthTokenrecord componentlanguage- the value for thelanguagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
roomName
Returns the value of theroomNamerecord component.- Returns:
- the value of the
roomNamerecord component
-
joinAuthToken
Returns the value of thejoinAuthTokenrecord component.- Returns:
- the value of the
joinAuthTokenrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-