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 Summary
ConstructorsConstructorDescriptionScanResponse(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) 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 aScanResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.Returns the value of thecameraStaterecord component.city()Returns the value of thecityrecord component.country()Returns the value of thecountryrecord component.deadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theexistingLabelrecord component.Returns the value of thegeminiResponseStaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theintakeStatusrecord component.booleanname()Returns the value of thenamerecord component.notes()Returns the value of thenotesrecord component.booleanReturns the value of thependingIntakerecord component.Returns the value of thephoneNumberrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackingNumberrecord component.uuid()Returns the value of theuuidrecord component.zipCode()Returns the value of thezipCoderecord component.
-
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 aScanResponserecord class.- Parameters:
uuid- the value for theuuidrecord componentcameraState- the value for thecameraStaterecord componentgeminiResponseState- the value for thegeminiResponseStaterecord componenttrackingNumber- the value for thetrackingNumberrecord componentname- the value for thenamerecord componentaddress- the value for theaddressrecord componentcity- the value for thecityrecord componentstate- the value for thestaterecord componentzipCode- the value for thezipCoderecord componentcountry- the value for thecountryrecord componentphoneNumber- the value for thephoneNumberrecord componentdeadline- the value for thedeadlinerecord componentnotes- the value for thenotesrecord componentintakeStatus- the value for theintakeStatusrecord componentpendingIntake- the value for thependingIntakerecord componentexistingLabel- the value for theexistingLabelrecord component
-
ScanResponse
-
-
Method Details
-
isMissingCriticalData
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
cameraState
Returns the value of thecameraStaterecord component.- Returns:
- the value of the
cameraStaterecord component
-
geminiResponseState
Returns the value of thegeminiResponseStaterecord component.- Returns:
- the value of the
geminiResponseStaterecord component
-
trackingNumber
Returns the value of thetrackingNumberrecord component.- Returns:
- the value of the
trackingNumberrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
zipCode
Returns the value of thezipCoderecord component.- Returns:
- the value of the
zipCoderecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
deadline
Returns the value of thedeadlinerecord component.- Returns:
- the value of the
deadlinerecord component
-
notes
Returns the value of thenotesrecord component.- Returns:
- the value of the
notesrecord component
-
intakeStatus
Returns the value of theintakeStatusrecord component.- Returns:
- the value of the
intakeStatusrecord component
-
pendingIntake
public boolean pendingIntake()Returns the value of thependingIntakerecord component.- Returns:
- the value of the
pendingIntakerecord component
-
existingLabel
public boolean existingLabel()Returns the value of theexistingLabelrecord component.- Returns:
- the value of the
existingLabelrecord component
-