Package app.ductape.sdk.sessions
Record Class SessionsTypes.VerifyResult
java.lang.Object
java.lang.Record
app.ductape.sdk.sessions.SessionsTypes.VerifyResult
- Enclosing class:
- SessionsTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
VerifyResult
Creates an instance of aVerifyResultrecord class.- Parameters:
valid- the value for thevalidrecord componentdata- the value for thedatarecord componentsessionId- the value for thesessionIdrecord componentexpiresAt- the value for theexpiresAtrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-