define('application/models/production/profile', [
'rofl/models/api/abstract',
'application/models/configuration'
], function (
Abstract,
Configuration
) {
'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';
},
/**
* Validates the read response.
*
* @param {Object} response - The read response.
* @returns {boolean} - True if valid.
*/
validateReadResponse: function (response) {
return response.resultCode === Configuration.RESPONSE_CODES.OK;
}
});
});