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)}

.getUserConfigList(username, on_success, on_failure)

username {string}
on_success {function(Array.<spv.ds.SavedConfig>)}
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)}

.sessionCreate(menu_query, readmore_mode, on_success, on_failure)

menu_query {string}
readmore_mode {spv.ds.ipprot_nova.input.BopReadMoreMode}
on_success {function(spv.ds.impl.SessionInitData)}
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)}

.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)}

.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, on_success, on_failure)

session_id {string}
user_name {string}
on_success {Function}
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)}

.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)}