The spv.ds.impl.IDsProtocol Interface

spv.ds.impl.IDsProtocol()

Server protocol interface @interface

unhandled information:

type
'interface'

.getConfigImage(conf, img_params, on_success, on_failure)

conf {spv.ds.Config}
img_params {spv.ds.ImageParams}
on_success {function(spv.ds.ImageResult)}
on_failure {function(Error)}

.getFreshConfigs(limit, scale_width, scale_height, on_success, on_failure)

limit {number}
scale_width {number}
scale_height {number}
on_success {function(Array.<spv.ds.FreshConfig>)}
on_failure {function(Error)}

.getIntroPage(on_success, on_failure)

on_success {function(spv.ds.IntroPage)}
on_failure {function(Error)}

.getReadMore(item_id, model, category, on_success, on_failure)

item_id {string}
model {string}
category {string}
on_success {function(Array.<spv.ds.ReadMoreResource>)}
on_failure {function(Error)}

.getUserConfigList(username, on_success, on_failure)

username {string}
on_success {function(Array.<spv.ds.SavedConfig>)}
on_failure {function(Error)}

.resetPassword(token, new_password, on_success, on_failure)

token {string}
new_password {string}
on_success {Function}
on_failure {function(Error)}

.sessionAddGuiGroupSubscriptions(session_id, group_ids, on_success, on_failure)

session_id {string}
group_ids {Array.<string>}
on_success {function()}
on_failure {function(Error)}

.sessionBip(session_id, category, item_ids, on_success, on_failure)

session_id {string}
category {string}
item_ids {Array.<string>}
on_success {function(spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_failure {function(Error)}

.sessionClearGuiGroupSubscriptions(session_id, on_success, on_failure)

session_id {string}
on_success {function()}
on_failure {function(Error)}

.sessionCreate(menu_query, readmore_mode, ttl, on_success, on_failure)

menu_query {string}
readmore_mode {spv.ds.ipprot_nova.input.BopReadMoreMode}
ttl {number}
Time To Live for this session in seconds
on_success {function(spv.ds.impl.SessionInitData)}
on_failure {function(Error)}

.sessionCreateUser(session_id, user_name, password, on_success, on_failure)

session_id {string}
user_name {string}
password {string}
on_success {Function}
on_failure {function(Error)}

.sessionGeneratePdf(session_id, on_success, on_failure)

session_id {string}
on_success {function(string)}
Callback taking the generated pdf url
on_failure {function(Error)}

.sessionGetConfig(session_id, encoding, on_success, on_failure)

session_id {string}
encoding {string}
on_success {function(spv.ds.Config)}
on_failure {function(Error)}

.sessionGetConfigNames(session_id, on_success, on_failure)

session_id {string}
on_success {function(Array.<string>)}
on_failure {function(Error)}

.sessionGetFacebookShareData(session_id, on_success, on_failure)

session_id {string}
on_success {function(spv.ds.FacebookShareData)}
on_failure {function(Error)}

.sessionGetFreshConfigs(session_id, limit, scale_width, scale_height, on_success, on_failure)

TODO: Remove this method once old booster is completely discontinued. Nova's getFreshConfigs is a session free call.

session_id {string}
limit {number}
scale_width {number}
scale_height {number}
on_success {function(Array.<spv.ds.FreshConfig>)}
on_failure {function(Error)}

.sessionGetImage(session_id, img_params, on_success, on_failure)

session_id {string}
img_params {spv.ds.ImageParams}
on_success {function(spv.ds.ImageResult)}
on_failure {function(Error)}

.sessionGetItemInfo(session_id, item_ids, on_success, on_failure)

session_id {string}
item_ids {Array.<string>}
on_success {function(Array.<spv.ds.MenuItem>)}
on_failure {function(Error)}

.sessionGetPresentationStructure(session_id, filter_name, query, on_success, on_failure)

session_id {string}
filter_name {string}
query {Array<string>}
on_success {function(spv.ds.PresentationStructure)}
on_failure {function(Error)}

.sessionGetStateResolvers(session_id, item_id, on_success, on_failure)

session_id {string}
item_id {string}
on_success {function(Array.<spv.ds.impl.GoalStateResolver>)}
on_failure {function(Error)}

.sessionGetSummary(session_id, on_success, on_failure)

session_id {string}
on_success {function(spv.ds.Summary)}
on_failure {function(Error)}

.sessionGetUserConfigImage(session_id, config_name, img_params, on_success, on_failure)

session_id {string}
config_name {string}
img_params {spv.ds.ImageParams}
on_success {function(spv.ds.ImageResult)}
on_failure {function(Error)}

.sessionHasLoggedInUser(session_id, on_success, on_failure)

session_id {string}
on_success {function(boolean)}
on_failure {function(Error)}

.sessionLoadConfig(session_id, config, on_success, on_failure)

session_id {string}
config {spv.ds.Config}
on_success {function(spv.ds.ConfigLoadResult, spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_failure {function(Error)}

.sessionLoadConfigByName(session_id, config_name, on_success, on_failure)

session_id {string}
config_name {string}
on_success {function(spv.ds.ConfigLoadResult, spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_failure {function(Error)}

.sessionLoadPublicConfig(session_id, config_name, on_success, on_failure)

session_id {string}
config_name {string}
on_success {function(spv.ds.ConfigLoadResult, spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_failure {function(Error)}

.sessionLogin(session_id, user_name, password, on_success, on_failure)

session_id {string}
user_name {string}
password {string}
on_success {Function}
on_failure {function(Error)}

.sessionLogout(session_id, on_success, on_failure)

session_id {string}
on_success {function(boolean)}
on_failure {function(Error)}

.sessionRemoveConfigByName(session_id, config_name, on_success, on_failure)

session_id {string}
config_name {string}
on_success {Function}
on_failure {function(Error)}

.sessionResume(session_id, on_success, on_failure)

session_id {string}
on_success {function(spv.ds.impl.SessionInitData)}
on_failure {function(Error)}

.sessionSaveConfigByName(session_id, config_name, allow_overwrite, on_success, on_failure)

session_id {string}
config_name {string}
allow_overwrite {boolean}
on_success {Function}
on_failure {function(Error)}

.sessionSendHeartBeat(session_id, on_success, on_failure)

session_id {string}
on_success {function(string)}
on_failure {function(Error)}

.sessionSendResetPasswordMail(session_id, main_url, user_name, language, on_success, on_failure)

session_id {string}
main_url {string}
user_name {string}
language {string}
on_success {Function}
on_failure {function(Error)}

.sessionSetPriceLocalization(session_id, price_localization_id, on_success, on_failure)

session_id {string}
price_localization_id {string}
on_success {Function}
on_failure {function(Error)}

.sessionToggleItem(session_id, item_id, category, on_bop, on_resolvers, on_failure)

session_id {string}
item_id {string}
category {string}
on_bop {function(spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_resolvers {function(Array.<spv.ds.impl.GoalStateResolver>)}
on_failure {function(Error)}

.sessionUpdateBop(session_id, on_success, on_failure)

session_id {string}
on_success {function(spv.ds.SessionStateUpdate, spv.ds.impl.AuxData)}
on_failure {function(Error)}