public class SearchResult
extends java.lang.Object
Constructor and Description |
---|
SearchResult(java.lang.String id,
java.lang.String sourceId,
java.lang.String url,
java.lang.Integer part,
Mode mode)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getEpisodes()
Used to get the episode numbers
|
java.lang.String |
getId()
The id of the show, or null if it can't be found
|
Mode |
getMode()
Used to get the media results type
|
java.lang.Integer |
getPart()
Used to get the part number if one was found
|
java.lang.Integer |
getSeason()
Used to get the season number
|
java.lang.String |
getSourceId()
The source if of the source that was used to find the show id.
|
java.lang.String |
getTitle()
Used to get the title of the URL if one was found
|
java.lang.String |
getUrl()
Used to get the url of the show that was found.
|
void |
setEpisodes(java.util.List<java.lang.Integer> episodes)
Used to set the episode numbers
|
void |
setSeason(java.lang.Integer season)
Used to set the season number
|
void |
setTitle(java.lang.String title)
Used to set the title of the URL if one could be found
|
java.lang.String |
toString()
Returns a string representation of the result
|
public SearchResult(java.lang.String id, java.lang.String sourceId, java.lang.String url, java.lang.Integer part, Mode mode)
id
- The id of the show that was foundsourceId
- The id of the source that it was found inurl
- The URL of the showpart
- The part number of the media, or null if not known/supportedmode
- The media typepublic java.lang.String getId()
public java.lang.String getSourceId()
public java.lang.String getUrl()
public java.lang.String toString()
toString
in class java.lang.Object
public void setTitle(java.lang.String title)
title
- The title of the URLpublic java.lang.String getTitle()
public java.lang.Integer getPart()
public Mode getMode()
public java.lang.Integer getSeason()
public void setSeason(java.lang.Integer season)
season
- The season numberpublic java.util.List<java.lang.Integer> getEpisodes()
public void setEpisodes(java.util.List<java.lang.Integer> episodes)
episodes
- The episode numbers