Record Class DittoAuthenticator.LoginResult
java.lang.Object
java.lang.Record
com.ditto.java.DittoAuthenticator.LoginResult
- Record Components:
clientInfoJSON- optional JSON string from the auth webhook's clientInfo field.error- optional error if the login failed.
- Enclosing class:
DittoAuthenticator
public static record DittoAuthenticator.LoginResult(@Nullable String clientInfoJSON, @Nullable DittoException error)
extends Record
Result of a login operation.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginResult(@Nullable String clientInfoJSON, @Nullable DittoException error) Creates an instance of aLoginResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theclientInfoJSONrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable DittoExceptionerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoginResult
Creates an instance of aLoginResultrecord class.- Parameters:
clientInfoJSON- the value for theclientInfoJSONrecord componenterror- the value for theerrorrecord 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). -
clientInfoJSON
Returns the value of theclientInfoJSONrecord component.- Returns:
- the value of the
clientInfoJSONrecord component
-
error
-