org.stanwood.media.model
Class SearchResult

java.lang.Object
  extended by org.stanwood.media.model.SearchResult

public class SearchResult
extends java.lang.Object

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

SearchResult

public SearchResult(java.lang.String id,
                    java.lang.String sourceId,
                    java.lang.String url,
                    java.lang.Integer part,
                    Mode mode)
Constructor of the class

Parameters:
id - The id of the show that was found
sourceId - The id of the source that it was found in
url - The URL of the show
part - The part number of the media, or null if not known/supported
mode - The media type
Method Detail

getId

public java.lang.String getId()
The id of the show, or null if it can't be found

Returns:
The id of the show

getSourceId

public java.lang.String getSourceId()
The source if of the source that was used to find the show id.

Returns:
The id of the source associated with the show id

getUrl

public java.lang.String getUrl()
Used to get the url of the show that was found.

Returns:
the url The show url

toString

public java.lang.String toString()
Returns a string representation of the result

Overrides:
toString in class java.lang.Object
Returns:
string representation of the result

setTitle

public void setTitle(java.lang.String title)
Used to set the title of the URL if one could be found

Parameters:
title - The title of the URL

getTitle

public java.lang.String getTitle()
Used to get the title of the URL if one was found

Returns:
The title

getPart

public java.lang.Integer getPart()
Used to get the part number if one was found

Returns:
The part number or null if it was not found

getMode

public Mode getMode()
Used to get the media results type

Returns:
The media type

getSeason

public java.lang.Integer getSeason()
Used to get the season number

Returns:
the season number, or null if it could not be found

setSeason

public void setSeason(java.lang.Integer season)
Used to set the season number

Parameters:
season - The season number

getEpisode

public java.lang.Integer getEpisode()
Used to get the episode number

Returns:
the episode number, or null if it could not be found

setEpisode

public void setEpisode(java.lang.Integer episode)
Used to set the episode number

Parameters:
episode - The episode number