Interface MessageMapper
public interface MessageMapper
Mapper for converting between
MessageRequest
and MessageResponse
.
This interface uses MapStruct to automatically generate the implementation for mapping fields between the two data transfer objects (DTOs) related to messages.
-
Method Summary
Modifier and TypeMethodDescriptiontoRequest
(MessageResponse messageResponse) Maps aMessageResponse
object to aMessageRequest
object.toResponse
(MessageRequest messageRequest) Maps aMessageRequest
object to aMessageResponse
object.
-
Method Details
-
toRequest
Maps aMessageResponse
object to aMessageRequest
object.- Parameters:
messageResponse
- TheMessageResponse
object to be converted.- Returns:
- The converted
MessageRequest
object.
-
toResponse
Maps aMessageRequest
object to aMessageResponse
object.- Parameters:
messageRequest
- TheMessageRequest
object to be converted.- Returns:
- The converted
MessageResponse
object.
-