Interface MessageIdsCallbackDataMapper
public interface MessageIdsCallbackDataMapper
Mapper interface for converting between
MessageIdsCommandCallbackDataDTO and
MessageIdsTelegramCommandCallbackDataDTO.
This interface uses MapStruct to generate the implementation at compile time.-
Method Summary
Modifier and TypeMethodDescriptiondefault intgetSize(Collection<?> collection) Gets the size of a collection.map(MessageIdsCommandCallbackDataDTO callbackData) Maps aMessageIdsCommandCallbackDataDTOto aMessageIdsTelegramCommandCallbackDataDTO.map(MessageIdsTelegramCommandCallbackDataDTO callbackData) Maps aMessageIdsTelegramCommandCallbackDataDTOto aMessageIdsCommandCallbackDataDTO.mapMessageIds(MessageIdsTelegramCommandCallbackDataDTO callbackData) Maps the message IDs from aMessageIdsTelegramCommandCallbackDataDTOto a list of integers.
-
Method Details
-
map
Maps aMessageIdsCommandCallbackDataDTOto aMessageIdsTelegramCommandCallbackDataDTO.- Parameters:
callbackData- the source callback data- Returns:
- the mapped Telegram command callback data
-
map
Maps aMessageIdsTelegramCommandCallbackDataDTOto aMessageIdsCommandCallbackDataDTO.- Parameters:
callbackData- the source Telegram command callback data- Returns:
- the mapped command callback data
-
getSize
Gets the size of a collection.- Parameters:
collection- the collection to get the size of- Returns:
- the size of the collection
-
mapMessageIds
Maps the message IDs from aMessageIdsTelegramCommandCallbackDataDTOto a list of integers. This method generates a list of integers starting from the first message ID and continuing for the specified number of messages.- Parameters:
callbackData- the source Telegram command callback data containing the first message ID and count- Returns:
- a list of message IDs
-