|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.model.SearchResult
public class SearchResult
This is used to hold the results of searching for a show id
Constructor Summary | |
---|---|
SearchResult(java.lang.String id,
java.lang.String sourceId,
java.lang.String url,
java.lang.Integer part,
Mode mode)
Constructor of the class |
Method Summary | |
---|---|
java.lang.Integer |
getEpisode()
Used to get the episode number |
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 |
setEpisode(java.lang.Integer episode)
Used to set the episode number |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 typeMethod Detail |
---|
public 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.lang.Integer getEpisode()
public void setEpisode(java.lang.Integer episode)
episode
- The episode number
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |