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 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 a EncryptedPassportElement record class.
      Parameters:
      type - the value for the type record component
      data - the value for the data record component
      phoneNumber - the value for the phoneNumber record component
      email - the value for the email record component
      files - the value for the files record component
      frontSide - the value for the frontSide record component
      reverseSide - the value for the reverseSide record component
      selfie - the value for the selfie record component
      translation - the value for the translation record component
      hash - the value for the hash record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • data

      @Nullable public @Nullable String data()
      Returns the value of the data record component.
      Returns:
      the value of the data record component
    • phoneNumber

      @Nullable public @Nullable String phoneNumber()
      Returns the value of the phoneNumber record component.
      Returns:
      the value of the phoneNumber record component
    • email

      @Nullable public @Nullable String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • files

      @Nullable public @Nullable PassportFile[] files()
      Returns the value of the files record component.
      Returns:
      the value of the files record component
    • frontSide

      @Nullable public @Nullable PassportFile frontSide()
      Returns the value of the frontSide record component.
      Returns:
      the value of the frontSide record component
    • reverseSide

      @Nullable public @Nullable PassportFile reverseSide()
      Returns the value of the reverseSide record component.
      Returns:
      the value of the reverseSide record component
    • selfie

      @Nullable public @Nullable PassportFile selfie()
      Returns the value of the selfie record component.
      Returns:
      the value of the selfie record component
    • translation

      @Nullable public @Nullable PassportFile[] translation()
      Returns the value of the translation record component.
      Returns:
      the value of the translation record component
    • hash

      @Nullable public @Nullable String hash()
      Returns the value of the hash record component.
      Returns:
      the value of the hash record component