Interface RedditSendMediaGroupDTOMapper
public interface RedditSendMediaGroupDTOMapper
SendMediaGroupDTO mapper.-
Method Summary
Modifier and TypeMethodDescriptionmap(List<Link.Metadata> metadataPartition, boolean hasSpoiler, String caption) Maps a list ofLink.MetadatatoSendMediaGroupDTO.
-
Method Details
-
map
SendMediaGroupDTO map(List<Link.Metadata> metadataPartition, boolean hasSpoiler, String caption) throws IOException Maps a list ofLink.MetadatatoSendMediaGroupDTO.- Parameters:
metadataPartition- the list of Reddit link metadatahasSpoiler- whether the media has a spoilercaption- the caption for the media group- Returns:
- the mapped
SendMediaGroupDTO - Throws:
IOException- if an I/O error occurs during mapping
-