spv.ds.impl.SessionState
Classspv.ds.impl.SessionState(init_data)
Manages all client side session data and provides functions for lookup and mutation of that data. The only client side session data not handled by this class is the session id used by the current implementation of the server protocol. Management of session id the responsibility of the protocol adaptor. @struct
init_data
{spv.ds.impl.SessionInitData
}
.assertHasLoadedConfig()
Test if category and model has been set, throw on failure
.getAuxiliaryData()
Get the auxiliary data that came with the last bop.
spv.ds.impl.AuxData
}
.getImageSerieInfos()
Get the image serie information for the current configuration
Array
.<spv.ds.ImageSerieInfo
>}
.getLongText(item_id)
Get 'long_text' text for item_id or empty string on failure
item_id
{string
}
string
}
.getMediumText(item_id)
Get 'medium_text' text for item_id or empty string on failure
item_id
{string
}
string
}
.getRootMenuItems()
Get the root menues from bump data
Array
.<spv.ds.MenuItem
>}
.getShortText(item_id)
Get 'short_text' text for item_id or empty string on failure
item_id
{string
}
string
}
.getUpdate()
Get the last session state update
spv.ds.SessionStateUpdate
}
.getUrlSettings()
Get base urls needed for most GET operations on images etc.
spv.ds.UrlSettings
}
.update(state_update, aux_data)
Update the client side session state
state_update
{spv.ds.SessionStateUpdate
}
aux_data
{spv.ds.impl.AuxData
}
.updateTexts(state_update)
Updates the text database.
state_update
{spv.ds.SessionStateUpdate
}