define('application/models/onboarding', [
'rofl/class',
'rofl/lib/l10n'
], function (
Class,
L10n
) {
'use strict';
var l10n = L10n.getInstance();
return Class.extend({
/**
* Retrieves the onboarding screens.
*
* @param {Object} callbacks - Returns array with onboarding screen items.
**/
loadData: function (callbacks) {
callbacks.onSuccess([
{
text: l10n.get('onboarding.homeText'),
src: 'src/assets/images/onboarding-home.png',
focusable: false
},
{
text: l10n.get('onboarding.replayText'),
src: 'src/assets/images/onboarding-replay.png',
focusable: false
},
{
text: l10n.get('onboarding.moviesAndSeriesText'),
src: 'src/assets/images/onboarding-vod.png',
focusable: false
},
{
text: l10n.get('onboarding.sportsText'),
src: 'src/assets/images/onboarding-sport.png',
focusable: false
},
{
text: l10n.get('onboarding.playerText'),
src: 'src/assets/images/onboarding-player.png',
focusable: false
}
]);
}
});
});