Class PhotoEntity

    • Constructor Detail

      • PhotoEntity

        protected PhotoEntity()
    • Method Detail

      • createFrom

        public static PhotoEntity createFrom​(Photo photo)
        Creates a new photo entity from the specified photo.
        Parameters:
        photo -
        Returns:
        the entity representing the specified photo.
      • withPreviewUrl

        public PhotoEntity withPreviewUrl​(URI previewUrl)
      • getPreviewUrl

        public URI getPreviewUrl()
        Returns:
        the previewUrl
      • getNormalUrl

        public URI getNormalUrl()
        Returns:
        the normalUrl