SeriesInfo object.
Extends
Builder
Constructors
new SeriesInfoBuilder()
new SeriesInfoBuilder(): SeriesInfoBuilderReturns
SeriesInfoBuilderMethods
build()
build(): ISeriesInfo Builds theSeriesInfo object based on the parameters provided.
Throws
InvalidArgumentErrorif one or more of the required fields are missing.IllegalStateErrorif the function is called after this builder instance has already built an object once.
Returns
ISeriesInfo ISeriesInfo The builtSeriesInfo object containing season/episode number info for a program.
episode()
episode(episode:string): SeriesInfoBuilder
Sets the episode number.
This field is required in order to build the SeriesInfo object.
Parameters
episode
string
The string representing the episode number.
The string will be truncated if its length exceeds 256 bytes and the last 3 bytes will be replaced with ”…”.
Throws
IllegalStateErrorif the function is called after this builder instance has already built an object once.InvalidArgumentErrorif a string that is not valid UTF-8 is passed in.
Returns
SeriesInfoBuilder SeriesInfoBuilder TheSeriesInfoBuilder object with episode number set.
season()
season(season:string): SeriesInfoBuilder
Sets the season number.
This field is required in order to build the SeriesInfo object.
Parameters
season
string
The string representing the season number.
The string will be truncated if its length exceeds 256 bytes and the last 3 bytes will be replaced with ”…”.
Throws
IllegalStateErrorif the function is called after this builder instance has already built an object once.InvalidArgumentErrorif a string that is not valid UTF-8 is passed in.
Returns
SeriesInfoBuilder SeriesInfoBuilder TheSeriesInfoBuilder object with season number set.

