public class MediaSearchResult extends Object implements Comparable<MediaSearchResult>
Constructor and Description |
---|
MediaSearchResult(String providerId,
MediaType type) |
MediaSearchResult(String providerId,
MediaType type,
float score) |
MediaSearchResult(String providerId,
MediaType type,
String id,
String title,
int year,
float score) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MediaSearchResult arg0) |
boolean |
equals(Object obj) |
String |
getId()
Get the id of this search result
|
String |
getIMDBId()
Get the IMDB id
|
MediaMetadata |
getMediaMetadata()
Get the MediaMetadata
|
MediaType |
getMediaType()
Get the media type this search result is for
|
String |
getOriginalLanguage()
Get the original language of this search result
|
String |
getOriginalTitle()
Get the original title of this search result
|
String |
getPosterUrl()
Get the poster url
|
String |
getProviderId()
Get the provider id
|
float |
getScore()
Get the score of this search result.
|
String |
getTitle()
Get the title of this search result
|
String |
getUrl()
Get the url to this search result
|
int |
getYear()
Get the year of this search result
|
int |
hashCode() |
void |
mergeFrom(MediaSearchResult msr)
merges all entries from other MSR into ours, IF VALUES ARE EMPTY
needs testing! |
void |
setId(String id)
Set the id of this search result
|
void |
setIMDBId(String imdbid)
Set the IMDB id
|
void |
setMetadata(MediaMetadata md)
Set the MediaMetadata if you already got the whole meta data while searching (for buffering)
|
void |
setOriginalLanguage(String originalLanguage)
Set the original language for this search result
|
void |
setOriginalTitle(String originalTitle)
Set the original title for this search result
|
void |
setPosterUrl(String posterUrl)
Set the poster url
|
void |
setProviderId(String providerId)
Set the provider id
|
void |
setScore(float score)
Set the score of this result
|
void |
setScore(Float score)
Set the score of this result (nullsafe)
|
void |
setTitle(String title)
Set the title of this search result
|
void |
setUrl(String url)
Set the url to this search result
|
void |
setYear(int year)
Set the year of this search result
|
void |
setYear(Integer year)
Set the year of this search result (nullsafe)
|
String |
toString()
Uses
ReflectionToStringBuilder to generate a toString for the specified object. |
public void mergeFrom(MediaSearchResult msr)
msr
- other MediaSerachResultpublic String getOriginalTitle()
public void setOriginalTitle(String originalTitle)
originalTitle
- the original titlepublic String getOriginalLanguage()
public void setOriginalLanguage(String originalLanguage)
originalLanguage
- the original languagepublic String getProviderId()
public void setProviderId(String providerId)
providerId
- the provider idpublic String getTitle()
public void setTitle(String title)
title
- the titlepublic int getYear()
public void setYear(int year)
year
- the yearpublic void setYear(Integer year)
year
- the yearpublic float getScore()
public void setScore(float score)
score
- the resultpublic void setScore(Float score)
score
- the resultpublic String getUrl()
public void setUrl(String url)
url
- the urlpublic MediaType getMediaType()
public String getId()
public void setId(String id)
id
- the search result idpublic String getIMDBId()
public void setIMDBId(String imdbid)
imdbid
- the IMDB idpublic MediaMetadata getMediaMetadata()
public void setMetadata(MediaMetadata md)
md
- the MediaMetadatapublic String getPosterUrl()
public void setPosterUrl(String posterUrl)
posterUrl
- the poster urlpublic int compareTo(MediaSearchResult arg0)
compareTo
in interface Comparable<MediaSearchResult>
Copyright © 2012–2018 tinyMediaManager. All rights reserved.