Record Class BzstDipCompleteResult
java.lang.Object
java.lang.Record
software.xdev.bzst.dip.client.model.message.dac7.BzstDipCompleteResult
- Record Components:
dataTransferNumber- of the sent messagesingleTransferResults- of all received results
public record BzstDipCompleteResult(String dataTransferNumber, List<BzstDipSingleTransferResult> singleTransferResults)
extends Record
Represents the result of querying for a response on the BZST API.
-
Constructor Summary
ConstructorsConstructorDescriptionBzstDipCompleteResult(String dataTransferNumber, List<BzstDipSingleTransferResult> singleTransferResults) Creates an instance of aBzstDipCompleteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataTransferNumberrecord component.final booleanIndicates whether some other object is "equal to" this one.static BzstDipCompleteResultfromResult(BzstDipSendingResult sendingResult, BzstDipRequestStatusResult requestStatusResult) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesingleTransferResultsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BzstDipCompleteResult
public BzstDipCompleteResult(String dataTransferNumber, List<BzstDipSingleTransferResult> singleTransferResults) Creates an instance of aBzstDipCompleteResultrecord class.- Parameters:
dataTransferNumber- the value for thedataTransferNumberrecord componentsingleTransferResults- the value for thesingleTransferResultsrecord component
-
-
Method Details
-
fromResult
public static BzstDipCompleteResult fromResult(BzstDipSendingResult sendingResult, BzstDipRequestStatusResult requestStatusResult) -
isSuccessful
public boolean isSuccessful()- Returns:
trueif the setdataTransferNumberis found in the results and the status of the result isBzstDipSingleTransferResult.StatusCodeMeaning.OK.
-
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). -
dataTransferNumber
Returns the value of thedataTransferNumberrecord component.- Returns:
- the value of the
dataTransferNumberrecord component
-
singleTransferResults
Returns the value of thesingleTransferResultsrecord component.- Returns:
- the value of the
singleTransferResultsrecord component
-