The spv.ds Namespace

The spv.ds.Config Class

Holds a serialized configuration state of dynamic encoding. @export @struct … more

The spv.ds.ConfigLoadResult Class

Holds a serialized configuration state of dynamic encoding. @struct … more

The spv.ds.Disclaimer Class

… more

The spv.ds.DisplayPrice Class

The data contained in this class is generated by DsClient and should not be explicitly constructed by the user. This struct holds information on how to present a price. It includes the currency and the price value and where the currency symbol should be placed (pre/postfix). If use_text is true then it's expected to display the 'text' property instead of the price. Legacy: Only a text with a pre-formatted price was used before the addition of this datastructure. Please inquire about backend-plugin support if this struct is used to replace the deprecated string properties in an established client. Existing plugins may not properly populate it. @struct … more

The spv.ds.DsClient Class

DsClient provides a layer of abstraction between GUI code and session-/protocol-handling. The configurator system is stateful. Session state is shared between server and client, this is a source of complexity and can hopefully be removed at some point in the future. DsClient provides synchronization of session state between server and client by centralizing management of the shared state inside this class. Member functions are stateful if the member function name begins with "session". Other member functions are state- and session-less and can be called at any time, in any order. Most session dependent functions also require a loaded configuration. Preconditions should be documented for each member function in this class. The configurator system can be simplified as the following three phases: A. The user finds the configurator application on the web or in the showroom. B. The user choose and change the product components (called items) until the user is satisfied or leaved the application. C. The user saves the configuration for a later time or choose to place an order or request a sales contact for the built configuration. Technical usage example 1, Starting a new configuration session and interacting with the user. (Step-by-step example of phase B): 1. Construct an instance of spv.ds.Client 2. Call sessionInit 3. Call getIntroPage to retrieve the available start configurations 4. Generate images for the start configurations using getConfigImage 5. Display the available start configuration images to the user using the appropriate techniques for the GUI implementation. 6. The user chooses a start configuration 7. Send that start configuration to sessionLoadConfig 8. On success, call sessionGetRootMenuItems and sessionGetImage 9. Populate the GUI root menu with menu items and wait for the image response 10. On image success, load and display the configuration image 11. The user makes a choice about which menu to open 12. Call sessionToggleItem for the user chosen MenuItem (both menus and product components are MenuItems) 13. On success, call sessionGetStateUpdate to populate the currently open menu with menu items. 14. The user clicks an item in the currently open menu, send that MenuItem to sessionToggleItem and handle response. 15. On success, update the currently open menu with new MenuItems (most menu items will usually be unchanged, but some may change state and some may disappear while others may be added). Call sessionGetImage to get the new configuration image and wait for response. 16. On image success, load and display the configuration image 17. The user clicks a new item and the sessionToggleItem cycle continues until the user closes the application or decides to place an order for the built configuration. (this step is customized action for each configurator application, eg. cars and bathroom products require different types of shopping cart solutions) @export … more

The spv.ds.DsClientSettings Class

… more

The spv.ds.DsClientValidatedSettings Class

Internal type for validation of settings. … more

The spv.ds.FacebookShareData Class

… more

The spv.ds.FreshConfig Class

… more

The spv.ds.GuiPath Class

… more

The spv.ds.GuiPathItem Class

… more

The spv.ds.ImageParams Class

This data structure holds all parameters used in image requests. The default values initialized by the constructor are not recommended, the context should provide a factory function for default construction. The image compose process goes as follows. 1. Image is rendered to it's native resolution 2. Image is scaled according to scaled_width and scaled_height 3. Image is cropped according to cropped_width and cropped_height 4. Image is auto cropped if auto_crop is set 5. Image is saved Note that a "0" in scaled_width, scaled_height, cropped_width or cropped_height means that it will use the "native/source" value for that dimension. If auto_crop is set however, and exactly one of scaled_width or scaled_height is set to "0", the "0" will be replaced with a value that keeps the source aspect ratio. @export @struct … more

The spv.ds.ImageResult Class

Result data from image request @export … more

The spv.ds.ImageSerieInfo Class

Information about the image serie for the current configuration @struct … more

The spv.ds.IntroPage Class

… more

The spv.ds.IntroPageConfig Class

… more

The spv.ds.IntroPageGroup Class

… more

The spv.ds.IntroPageImage Class

… more

The spv.ds.ItemSummary Class

… more

The spv.ds.Loan Class

… more

… more

… more

The spv.ds.SavedConfig Class

… more

The spv.ds.SessionStateUpdate Class

… more

The spv.ds.Suggestion Class

Represents one configuration change suggestion. Suggestions are generated when the configurator logic engine finds relevant alternatives to the requested goal state. This object is instantiated by DsClient and should not be constructed by caller code. @export @struct … more

The spv.ds.Summary Class

… more

The spv.ds.UrlSettings Class

Base URLs needed for most GET operations for images etc. @struct … more

The spv.ds.assert Namespace

… more

The spv.ds.impl Namespace

… more

The spv.ds.ipprot Namespace

… more

The spv.ds.ipprot_nova Namespace

… more