Package dev.tobee.telegram.model
Record Class EncryptedPassportElement
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.EncryptedPassportElement
public record EncryptedPassportElement(EncryptedCredentialsType type, Optional<String> data, Optional<String> phoneNumber, Optional<String> email, List<PassportFile> files, Optional<PassportFile> frontSide, Optional<PassportFile> reverseSide, Optional<PassportFile> selfie, List<PassportFile> translation, List<String> hash)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedPassportElement(EncryptedCredentialsType type, Optional<String> data, Optional<String> phoneNumber, Optional<String> email, List<PassportFile> files, Optional<PassportFile> frontSide, Optional<PassportFile> reverseSide, Optional<PassportFile> selfie, List<PassportFile> translation, List<String> hash)Creates an instance of aEncryptedPassportElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.email()Returns the value of theemailrecord component.booleanIndicates whether some other object is "equal to" this one.files()Returns the value of thefilesrecord component.Returns the value of thefrontSiderecord component.hash()Returns the value of thehashrecord component.inthashCode()Returns a hash code value for this object.Returns the value of thephoneNumberrecord component.Returns the value of thereverseSiderecord component.selfie()Returns the value of theselfierecord component.toString()Returns a string representation of this record class.Returns the value of thetranslationrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EncryptedPassportElement
public EncryptedPassportElement(EncryptedCredentialsType type, Optional<String> data, Optional<String> phoneNumber, Optional<String> email, List<PassportFile> files, Optional<PassportFile> frontSide, Optional<PassportFile> reverseSide, Optional<PassportFile> selfie, List<PassportFile> translation, List<String> hash)Creates an instance of aEncryptedPassportElementrecord class.- Parameters:
type- the value for thetyperecord componentdata- the value for thedatarecord componentphoneNumber- the value for thephoneNumberrecord componentemail- the value for theemailrecord componentfiles- the value for thefilesrecord componentfrontSide- the value for thefrontSiderecord componentreverseSide- the value for thereverseSiderecord componentselfie- the value for theselfierecord componenttranslation- the value for thetranslationrecord componenthash- the value for thehashrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-
frontSide
Returns the value of thefrontSiderecord component.- Returns:
- the value of the
frontSiderecord component
-
reverseSide
Returns the value of thereverseSiderecord component.- Returns:
- the value of the
reverseSiderecord component
-
selfie
Returns the value of theselfierecord component.- Returns:
- the value of the
selfierecord component
-
translation
Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
hash
Returns the value of thehashrecord component.- Returns:
- the value of the
hashrecord component
-