define('application/models/production/streams/vod', [
'application/models/production/streams/base',
'rofl/lib/utils'
], function (
Base,
Utils
) {
'use strict';
var endpoints = {
VOD_MOVIE: '/VOD/{{contentId}}/{{assetId}}?'
};
return Base.extend({
/**
*
* @param {Object} params - Stream params.
* @param {Object} params.data - The content's data to request the url.
* @returns {string} - The endpoint.
*/
resolveEndpoint: function resolveEndpoint (params) {
var contentData = params.data || {};
this._endpoint = Utils.formatTemplate(endpoints.VOD_MOVIE, {
contentId: contentData.getId(),
assetId: contentData.getAssetId()
});
return resolveEndpoint.base.call(this, params);
}
});
});