The DeltaParams, TableParams, TableStreamParams auxiliary classes contain basic attributes that are used to exchange requests with mobile platform server.
Basic attributes are stored in the BaseRequestParams class:
Attribute | Data type | Description |
data | std::string | Data sent in request body. |
headers | stdMap | Dictionary with additional HTTP headers. |
retryCount | uint | Number of request repetitions or resource downloading repetitions. |
retryInterval | uint | Interval between request repetitions or resource downloading repetitions. |
filename | std::string | File name to save data. |
Auxiliary classes interact with basic attributes via specified parameters, for example:
DeltaParams param;
param.data = <data>;
The DeltaParams class is used to get a data delta.
Attribute | Data type | Description |
databasePath | std::string | Path to database file. NOTE. If the "filename" attribute is set at the same time, data is not loaded to the database. |
The TableParams class is used to get JSON data.
Attribute | Data type | Description |
args | stdMap |
A dictionary with additional arguments that are added to URL. |
The TableStreamParams class is used to get data with writing to database on a mobile device.
Attribute | Data type | Description |
databasePath | std::string | Path to database file. NOTE. If the "filename" attribute is set at the same time, data is not loaded to the database. |
args | stdMap |
A dictionary with additional arguments that are added in URL. |
See also:
Sailfish Framework | Initializing and Setting Up Sailfish Framework | Describing Sailfish Framework Methods