Create the class TmdbVideoUrlBuilder to provide a method to generate Video URLs from the TmdbVideo entities received from the API.
The current allowed Videos are from YouTube and Vimeo (From March 23, 2019, as was shown here
The key value returned on the API represents the platform video ID and the site value the platform itself. A new enum has been created to model the site and depending on it we use a different base URL as is detailed here
Create the class
TmdbVideoUrlBuilder
to provide a method to generate Video URLs from theTmdbVideo
entities received from the API.The current allowed Videos are from YouTube and Vimeo (From March 23, 2019, as was shown here
The
key
value returned on the API represents the platform video ID and thesite
value the platform itself. A newenum
has been created to model thesite
and depending on it we use a different base URL as is detailed here