Interface RedditSendPhotoDTOMapper


public interface RedditSendPhotoDTOMapper
SendPhotoDTO mapper.
  • Method Details

    • map

      SendPhotoDTO map(Link.Metadata metadata, boolean hasSpoiler) throws IOException
      Maps Reddit link metadata to a SendPhotoDTO.
      Parameters:
      metadata - the Reddit link metadata
      hasSpoiler - whether the photo has a spoiler
      Returns:
      the corresponding SendPhotoDTO
      Throws:
      IOException - if an I/O error occurs during mapping
    • map

      SendPhotoDTO map(Link post) throws IOException
      Maps a Reddit link to a SendPhotoDTO.
      Parameters:
      post - the Reddit link
      Returns:
      the corresponding SendPhotoDTO
      Throws:
      IOException - if an I/O error occurs during mapping