Requests to mobile platform server are exchanged using the HHive main class.
Requests to server API are executed using the HHive() constructor:
hhive::HHive::HHive (
std::string host,
std::string apiVersion,
std::string environment,
std::string project,
std::string deviceID
)
Arguments:
host. Server URL.
apiVersion. Server API version.
environment. Environment name.
project. Project name.
deviceID. Identifier of device in use.
To create objects with typical parameters, methods of the HHive class refer to auxiliary classes:
DeltaParams. Get data delta.
TableParams. Get JSON data.
TableStreamParams. Get data with writing to database on a mobile device.
For details about Sailfish framework methods, see the Describing Sailfish Framework Methods section.
See also:
Sailfish Framework | Auxiliary Classes | Describing Sailfish Framework Methods