HIVE SDK for C++

Static Public Member Functions | List of all members
DataStore Class Reference

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information. More...

#include <HIVE_DataStore.h>

Static Public Member Functions

static void set (string key, string value, onSet listener)
 Add Data
More...
 
static void set (map< string, string > data, onSet listener)
 Add Data
More...
 
static void get (string key, onGet listener)
 Get one of my data
More...
 
static void getMyData (onMyData listener)
 Get all my data
More...
 
static void getUsersData (string key, onUsersData listener)
 Get all data using key
More...
 

Detailed Description

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information.

Using this service is a good
solution for the games based on the client or if it needs real-time updates between clients.

Hive Data Store has the following features:

Since
4.15.8

Member Function Documentation

◆ get()

static void DataStore::get ( string  key,
onGet  listener 
)
static

Get one of my data

Since
4.15.8

◆ getMyData()

static void DataStore::getMyData ( onMyData  listener)
static

Get all my data

Since
4.15.8

◆ getUsersData()

static void DataStore::getUsersData ( string  key,
onUsersData  listener 
)
static

Get all data using key

Since
4.15.8

◆ set() [1/2]

static void DataStore::set ( map< string, string >  data,
onSet  listener 
)
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8

◆ set() [2/2]

static void DataStore::set ( string  key,
string  value,
onSet  listener 
)
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8

The documentation for this class was generated from the following file:
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy