Record Class ScanResponse

java.lang.Object
java.lang.Record
org.tavall.couriers.api.qr.scan.metadata.ScanResponse

public record ScanResponse(String uuid, CameraState cameraState, GeminiResponseState geminiResponseState, String trackingNumber, String name, String address, String city, String state, String zipCode, String country, String phoneNumber, Instant deadline, String notes, String intakeStatus, boolean pendingIntake, boolean existingLabel) extends Record
  • Constructor Details

    • ScanResponse

      public ScanResponse(String uuid, CameraState cameraState, GeminiResponseState geminiResponseState, String trackingNumber, String name, String address, String city, String state, String zipCode, String country, String phoneNumber, Instant deadline, String notes, String intakeStatus, boolean pendingIntake, boolean existingLabel)
      Creates an instance of a ScanResponse record class.
      Parameters:
      uuid - the value for the uuid record component
      cameraState - the value for the cameraState record component
      geminiResponseState - the value for the geminiResponseState record component
      trackingNumber - the value for the trackingNumber record component
      name - the value for the name record component
      address - the value for the address record component
      city - the value for the city record component
      state - the value for the state record component
      zipCode - the value for the zipCode record component
      country - the value for the country record component
      phoneNumber - the value for the phoneNumber record component
      deadline - the value for the deadline record component
      notes - the value for the notes record component
      intakeStatus - the value for the intakeStatus record component
      pendingIntake - the value for the pendingIntake record component
      existingLabel - the value for the existingLabel record component
    • ScanResponse

      public ScanResponse(String uuid, CameraState cameraState, GeminiResponseState geminiResponseState, String trackingNumber, String name, String address, String city, String state, String zipCode, String country, String phoneNumber, Instant deadline, String notes)
  • Method Details

    • isMissingCriticalData

      public boolean isMissingCriticalData(ScanResponse raw)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • uuid

      public String uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • cameraState

      public CameraState cameraState()
      Returns the value of the cameraState record component.
      Returns:
      the value of the cameraState record component
    • geminiResponseState

      public GeminiResponseState geminiResponseState()
      Returns the value of the geminiResponseState record component.
      Returns:
      the value of the geminiResponseState record component
    • trackingNumber

      public String trackingNumber()
      Returns the value of the trackingNumber record component.
      Returns:
      the value of the trackingNumber record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • address

      public String address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • city

      public String city()
      Returns the value of the city record component.
      Returns:
      the value of the city record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • zipCode

      public String zipCode()
      Returns the value of the zipCode record component.
      Returns:
      the value of the zipCode record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • phoneNumber

      public String phoneNumber()
      Returns the value of the phoneNumber record component.
      Returns:
      the value of the phoneNumber record component
    • deadline

      public Instant deadline()
      Returns the value of the deadline record component.
      Returns:
      the value of the deadline record component
    • notes

      public String notes()
      Returns the value of the notes record component.
      Returns:
      the value of the notes record component
    • intakeStatus

      public String intakeStatus()
      Returns the value of the intakeStatus record component.
      Returns:
      the value of the intakeStatus record component
    • pendingIntake

      public boolean pendingIntake()
      Returns the value of the pendingIntake record component.
      Returns:
      the value of the pendingIntake record component
    • existingLabel

      public boolean existingLabel()
      Returns the value of the existingLabel record component.
      Returns:
      the value of the existingLabel record component