Record Class MessageResultDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.messageexchange.web.api.dto.MessageResultDto
-
Constructor Summary
ConstructorsConstructorDescriptionMessageResultDto(UUID messageId, String messageType, String groupId, String partnerTopic) Creates an instance of aMessageResultDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageResultDtocreateV2Dto(MessageSearchResultDto domainDto) Creates a message search result that does not include the groupId and partnerTopic in the response, conforming to the schema of the response in the partner API v2.static MessageResultDtocreateV3Dto(MessageSearchResultDto domainDto) Creates a message search result that includes the groupId and partnerTopic in the response.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessageIdrecord component.Returns the value of themessageTyperecord component.Returns the value of thepartnerTopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageResultDto
Creates an instance of aMessageResultDtorecord class.- Parameters:
messageId- the value for themessageIdrecord componentmessageType- the value for themessageTyperecord componentgroupId- the value for thegroupIdrecord componentpartnerTopic- the value for thepartnerTopicrecord component
-
-
Method Details
-
createV2Dto
Creates a message search result that does not include the groupId and partnerTopic in the response, conforming to the schema of the response in the partner API v2. -
createV3Dto
Creates a message search result that includes the groupId and partnerTopic in the response. -
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). -
messageId
Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
partnerTopic
Returns the value of thepartnerTopicrecord component.- Returns:
- the value of the
partnerTopicrecord component
-