Today we are launching the cloudbase.io helper class for the MoSync cross-platform SDK.
cloudbase.io supports both MoSync’s standard C/C++ SDK and the MoSync Reload platform. The source code for both helper classes is open-source and available on the cloudbase.io GitHub account.
The helper class has a full set of interfaces you can implement to receive response data from the cloudbase.io APIs and serialize your objects to JSON.
As with all of our helper classes we have kept the integration as simple as possible. A few lines of code is all it takes to initialize the CBHelper object and start sending cloudbase.io your data and executing CloudFunctions.
We have also prepared a full documentation for the MoSync helper class.
// initialize the CBHelper object with the application details
this->helper = new CBHelper("my-app-code", "12345AppUniqCode23455");
MAUtil::String password = Cloudbase::MD5("application-password").hexdigest();
// we are ready to store some data
// create a new TestData (first name, last name and title)
TestData doc("Cloud", "Base", ".io");
// call the insertDocument method from the helper class to insert the data object
// into the test_data_collection. The method also supports two additional parameters.
// a MAUtil::Vector of CBHelperAttachment objects and a CBHelperResponder. In this case we don't need
// either parameter so we are sending NULL
helper->insertDocument("test_data_collection", dynamic_cast(&doc), NULL, NULL);
On top of the cloudbase.io documentation for the CBHelper object we have also generated the class reference documentation for all the objects in the cloudbase namespace