Interface Episode
-
- All Known Implementing Classes:
EpisodeDTO
public interface EpisodeInterface representing an Episode data transfer object.
The methods of this class provide easy access to all episode related data which was returned by the remote service in JSON format. Please note that, as the remote service declares all of the properties to be optional, most of the methods are marked asNullable. Methods returning collection-based values however will return an empty collection in case no corresponding data was received.
The sole purpose of these DTO objects is to encapsulate the exact raw JSON data as received from the remote service in order to facilitate API integration by working with simple Java POJO's instead of nested JSON nodes. Although there will be no intense post-processing of the actual JSON values a type-casting may be applied to some of them to improve the usability and relieve the API user of this task.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description LonggetAbsoluteNumber()Get the value of the {data.absoluteNumber} JSON propertyLonggetAiredEpisodeNumber()Get the value of the {data.airedEpisodeNumber} JSON propertyLonggetAiredSeason()Get the value of the {data.airedSeason} JSON propertyLonggetAirsAfterSeason()Get the value of the {data.airsAfterSeason} JSON propertyLonggetAirsBeforeEpisode()Get the value of the {data.airsBeforeEpisode} JSON propertyLonggetAirsBeforeSeason()Get the value of the {data.airsBeforeSeason} JSON propertyStringgetDirector()Deprecated, for removal: This API element is subject to removal in a future version.Will be removed in future API release.List<String>getDirectors()Get all values of the {data.directors} JSON property in a listLonggetDvdChapter()Get the value of the {data.dvdChapter} JSON propertyStringgetDvdDiscid()Get the value of the {data.dvdDiscid} JSON propertyLonggetDvdEpisodeNumber()Get the value of the {data.dvdEpisodeNumber} JSON propertyLonggetDvdSeason()Get the value of the {data.dvdSeason} JSON propertyStringgetEpisodeName()Get the value of the {data.episodeName} JSON propertyStringgetFilename()Get the value of the {data.filename} JSON propertyStringgetFirstAired()Get the value of the {data.firstAired} JSON propertyList<String>getGuestStars()Get all values of the {data.guestStars} JSON property in a listLonggetId()Get the value of the {data.id} JSON propertyStringgetImdbId()Get the value of the {data.imdbId} JSON propertyLonggetLastUpdated()Get the value of the {data.lastUpdated} JSON propertyStringgetLastUpdatedBy()Get the value of the {data.lastUpdatedBy} JSON propertyStringgetOverview()Get the value of the {data.overview} JSON propertyStringgetProductionCode()Get the value of the {data.productionCode} JSON propertyStringgetSeriesId()Get the value of the {data.seriesId} JSON propertyStringgetShowUrl()Get the value of the {data.showUrl} JSON propertyDoublegetSiteRating()Get the value of the {data.siteRating} JSON propertyLonggetSiteRatingCount()Get the value of the {data.siteRatingCount} JSON propertyStringgetThumbAdded()Get the value of the {data.thumbAdded} JSON propertyLonggetThumbAuthor()Get the value of the {data.thumbAuthor} JSON propertyStringgetThumbHeight()Get the value of the {data.thumbHeight} JSON propertyStringgetThumbWidth()Get the value of the {data.thumbWidth} JSON propertyList<String>getWriters()Get all values of the {data.writers} JSON property in a list
-
-
-
Method Detail
-
getAbsoluteNumber
@Nullable Long getAbsoluteNumber()
Get the value of the {data.absoluteNumber} JSON property- Returns:
- The
absoluteNumberproperty from the received JSON
-
getAiredEpisodeNumber
@Nullable Long getAiredEpisodeNumber()
Get the value of the {data.airedEpisodeNumber} JSON property- Returns:
- The
airedEpisodeNumberproperty from the received JSON
-
getAiredSeason
@Nullable Long getAiredSeason()
Get the value of the {data.airedSeason} JSON property- Returns:
- The
airedSeasonproperty from the received JSON
-
getAirsAfterSeason
@Nullable Long getAirsAfterSeason()
Get the value of the {data.airsAfterSeason} JSON property- Returns:
- The
airsAfterSeasonproperty from the received JSON
-
getAirsBeforeEpisode
@Nullable Long getAirsBeforeEpisode()
Get the value of the {data.airsBeforeEpisode} JSON property- Returns:
- The
airsBeforeEpisodeproperty from the received JSON
-
getAirsBeforeSeason
@Nullable Long getAirsBeforeSeason()
Get the value of the {data.airsBeforeSeason} JSON property- Returns:
- The
airsBeforeSeasonproperty from the received JSON
-
getDirector
@Deprecated(since="0.0.1", forRemoval=true) @Nullable String getDirector()
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed in future API release. UsegetDirectors()instead.Get the value of the {data.director} JSON property- Returns:
- The
directorproperty from the received JSON
-
getDirectors
List<String> getDirectors()
Get all values of the {data.directors} JSON property in a list- Returns:
- The
directorsproperty from the received JSON as list
-
getDvdChapter
@Nullable Long getDvdChapter()
Get the value of the {data.dvdChapter} JSON property- Returns:
- The
dvdChapterproperty from the received JSON
-
getDvdDiscid
@Nullable String getDvdDiscid()
Get the value of the {data.dvdDiscid} JSON property- Returns:
- The
dvdDiscidproperty from the received JSON
-
getDvdEpisodeNumber
@Nullable Long getDvdEpisodeNumber()
Get the value of the {data.dvdEpisodeNumber} JSON property- Returns:
- The
dvdEpisodeNumberproperty from the received JSON
-
getDvdSeason
@Nullable Long getDvdSeason()
Get the value of the {data.dvdSeason} JSON property- Returns:
- The
dvdSeasonproperty from the received JSON
-
getEpisodeName
@Nullable String getEpisodeName()
Get the value of the {data.episodeName} JSON property- Returns:
- The
episodeNameproperty from the received JSON
-
getFilename
@Nullable String getFilename()
Get the value of the {data.filename} JSON property- Returns:
- The
filenameproperty from the received JSON
-
getFirstAired
@Nullable String getFirstAired()
Get the value of the {data.firstAired} JSON property- Returns:
- The
firstAiredproperty from the received JSON
-
getGuestStars
List<String> getGuestStars()
Get all values of the {data.guestStars} JSON property in a list- Returns:
- The
guestStarsproperty from the received JSON as list
-
getId
@Nullable Long getId()
Get the value of the {data.id} JSON property- Returns:
- The
idproperty from the received JSON
-
getImdbId
@Nullable String getImdbId()
Get the value of the {data.imdbId} JSON property- Returns:
- The
imdbIdproperty from the received JSON
-
getLastUpdated
@Nullable Long getLastUpdated()
Get the value of the {data.lastUpdated} JSON property- Returns:
- The
lastUpdatedproperty from the received JSON
-
getLastUpdatedBy
@Nullable String getLastUpdatedBy()
Get the value of the {data.lastUpdatedBy} JSON property- Returns:
- The
lastUpdatedByproperty from the received JSON
-
getOverview
@Nullable String getOverview()
Get the value of the {data.overview} JSON property- Returns:
- The
overviewproperty from the received JSON
-
getProductionCode
@Nullable String getProductionCode()
Get the value of the {data.productionCode} JSON property- Returns:
- The
productionCodeproperty from the received JSON
-
getSeriesId
@Nullable String getSeriesId()
Get the value of the {data.seriesId} JSON property- Returns:
- The
seriesIdproperty from the received JSON
-
getShowUrl
@Nullable String getShowUrl()
Get the value of the {data.showUrl} JSON property- Returns:
- The
showUrlproperty from the received JSON
-
getSiteRating
@Nullable Double getSiteRating()
Get the value of the {data.siteRating} JSON property- Returns:
- The
siteRatingproperty from the received JSON
-
getSiteRatingCount
@Nullable Long getSiteRatingCount()
Get the value of the {data.siteRatingCount} JSON property- Returns:
- The
siteRatingCountproperty from the received JSON
-
getThumbAdded
@Nullable String getThumbAdded()
Get the value of the {data.thumbAdded} JSON property- Returns:
- The
thumbAddedproperty from the received JSON
-
getThumbAuthor
@Nullable Long getThumbAuthor()
Get the value of the {data.thumbAuthor} JSON property- Returns:
- The
thumbAuthorproperty from the received JSON
-
getThumbHeight
@Nullable String getThumbHeight()
Get the value of the {data.thumbHeight} JSON property- Returns:
- The
thumbHeightproperty from the received JSON
-
getThumbWidth
@Nullable String getThumbWidth()
Get the value of the {data.thumbWidth} JSON property- Returns:
- The
thumbWidthproperty from the received JSON
-
-