Record Class EncryptedPassportElement
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.EncryptedPassportElement
- All Implemented Interfaces:
Serializable,ApiResult
public record EncryptedPassportElement(String type, @Nullable String data, @Nullable String phoneNumber, @Nullable String email, @Nullable PassportFile[] files, @Nullable PassportFile frontSide, @Nullable PassportFile reverseSide, @Nullable PassportFile selfie, @Nullable PassportFile[] translation, @Nullable String hash)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptedPassportElement(String type, @Nullable String data, @Nullable String phoneNumber, @Nullable String email, @Nullable PassportFile[] files, @Nullable PassportFile frontSide, @Nullable PassportFile reverseSide, @Nullable PassportFile selfie, @Nullable PassportFile[] translation, @Nullable String hash) Creates an instance of aEncryptedPassportElementrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringdata()Returns the value of thedatarecord component.@Nullable Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable PassportFile[]files()Returns the value of thefilesrecord component.@Nullable PassportFileReturns the value of thefrontSiderecord component.@Nullable Stringhash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thephoneNumberrecord component.@Nullable PassportFileReturns the value of thereverseSiderecord component.@Nullable PassportFileselfie()Returns the value of theselfierecord component.final StringtoString()Returns a string representation of this record class.@Nullable PassportFile[]Returns the value of thetranslationrecord component.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EncryptedPassportElement
public EncryptedPassportElement(String type, @Nullable @Nullable String data, @Nullable @Nullable String phoneNumber, @Nullable @Nullable String email, @Nullable @Nullable PassportFile[] files, @Nullable @Nullable PassportFile frontSide, @Nullable @Nullable PassportFile reverseSide, @Nullable @Nullable PassportFile selfie, @Nullable @Nullable PassportFile[] translation, @Nullable @Nullable 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
-