define('application/models/production/parental', [
'rofl/models/api/abstract',
'application/models/configuration'
], function (
Abstract,
ApiConfig
) {
'use strict';
return Abstract.extend({
/**
* Resolves the endpoint.
*
* @returns {string} - The endpoint.
*/
resolveEndpoint: function () {
return '101/1.2.0/A/nld/smarttv/kpn/USER/PROFILE/PARENTALCONTROL';
},
/**
* Validates the response.
*
* @param {Object} response - The response.
* @returns {boolean} Response.
*/
validateResponse: function (response) {
return response.resultCode === ApiConfig.RESPONSE_CODES.OK;
}
});
});