public class MediaArtwork extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MediaArtwork.FanartSizes
All available fanart sizes
|
static class |
MediaArtwork.ImageSizeAndUrl
This class represents a combination of image size and the correspondin url for an artwork
|
static class |
MediaArtwork.MediaArtworkComparator |
static class |
MediaArtwork.MediaArtworkType
The different types of artwork we know
|
static class |
MediaArtwork.PosterSizes
All available poster sizes
|
Constructor and Description |
---|
MediaArtwork(MediaArtwork oldArtwork,
MediaArtwork.MediaArtworkType type)
A copy constructor for MediaArtwork - to clone an existing one for a new type
|
MediaArtwork(String providerId,
MediaArtwork.MediaArtworkType type)
Create a new instance of MediaArtwork for the given provider and type
|
Modifier and Type | Method and Description |
---|---|
void |
addImageSize(int width,
int height,
String url)
Add an image size.
|
MediaArtwork.ImageSizeAndUrl |
getBiggestArtwork()
Get the biggest artwork if different sizes are available or null
|
String |
getDefaultUrl()
Get the default url for this artwork
|
List<MediaArtwork.ImageSizeAndUrl> |
getImageSizes()
Get all available image sizes for this artwork
|
String |
getImdbId()
Get the assigned IMDB id for this artwork
|
String |
getLanguage()
Get the language for this artwork if available
|
int |
getLikes()
Get the likes of this artwork to indicate how popular this artwork is
|
String |
getPreviewUrl()
Get a preview url or the default url if no preview url is available
|
String |
getProviderId()
Get the provider id
|
int |
getSeason()
Get the season (useful for season artwork)
|
int |
getSizeOrder()
Get the size order to indicate how big this artwork is
|
MediaArtwork.ImageSizeAndUrl |
getSmallestArtwork()
Get the smallest artwork if different sizes are available or null
|
int |
getTmdbId()
Get the assigned TMDB id for this artwork
|
MediaArtwork.MediaArtworkType |
getType()
Get the artwork type
|
boolean |
isAnimated()
is this an animated graphic?
|
void |
setAnimated(boolean animated)
set this graphic as animated
|
void |
setDefaultUrl(String defaultUrl)
Set the default url
|
void |
setImdbId(String imdbId)
Set the assigned IMDB id for this artwork
|
void |
setLanguage(String language)
Set the language for this artwork
|
void |
setLikes(int likes)
amount of likes (or other, for ordering)
|
void |
setPreviewUrl(String previewUrl)
Set the preview url
|
void |
setSeason(int season)
Set the season (useful for season artwork)
|
void |
setSizeOrder(int sizeOrder)
Set the size order to indicate how big this artwork is
|
void |
setTmdbId(int tmdbId)
Set the assigned TMDB id for this artwork
|
String |
toString()
Uses
ReflectionToStringBuilder to generate a toString for the specified object. |
public MediaArtwork(String providerId, MediaArtwork.MediaArtworkType type)
providerId
- the provider idtype
- the artwork typepublic MediaArtwork(MediaArtwork oldArtwork, MediaArtwork.MediaArtworkType type)
oldArtwork
- the instance to copytype
- the new typepublic String getPreviewUrl()
public void setPreviewUrl(String previewUrl)
previewUrl
- the preview urlpublic String getDefaultUrl()
public void setDefaultUrl(String defaultUrl)
defaultUrl
- the default urlpublic String getProviderId()
public MediaArtwork.MediaArtworkType getType()
public String getLanguage()
public void setLanguage(String language)
language
- the languagepublic int getTmdbId()
public void setTmdbId(int tmdbId)
tmdbId
- the tmdb idpublic String getImdbId()
public void setImdbId(String imdbId)
imdbId
- the imdb idpublic void addImageSize(int width, int height, String url)
width
- thw widthheight
- the heighturl
- the urlpublic List<MediaArtwork.ImageSizeAndUrl> getImageSizes()
public MediaArtwork.ImageSizeAndUrl getSmallestArtwork()
public MediaArtwork.ImageSizeAndUrl getBiggestArtwork()
public int getSizeOrder()
public void setSizeOrder(int sizeOrder)
sizeOrder
- the size orderpublic int getLikes()
public void setLikes(int likes)
likes
- set the amount of likespublic boolean isAnimated()
public void setAnimated(boolean animated)
animated
- public int getSeason()
public void setSeason(int season)
season
- the seasonCopyright © 2012–2017 tinyMediaManager. All rights reserved.