Commit 59ec9cb0 authored by Diogo Silva's avatar Diogo Silva
Browse files

cloudprovider: renamed functions for serializing and unserializing

parent 721d60e5
......@@ -195,7 +195,7 @@ void CloudProvider::initialize(InitData&& data) {
auth()->initialize(http(), httpd());
}
std::string ICloudProvider::serializeSession(const std::string& token,
std::string ICloudProvider::storeSession(const std::string& token,
const Hints& hints) {
Json::Value root_json;
Json::Value hints_json;
......@@ -210,7 +210,7 @@ std::string ICloudProvider::serializeSession(const std::string& token,
return fastWriter.write(root_json);
}
bool ICloudProvider::unserializeSession(const std::string& serialized_data,
bool ICloudProvider::restoreSession(const std::string& serialized_data,
std::string& token, Hints& hints) {
std::string token_tmp;
Hints hints_tmp;
......
......@@ -163,8 +163,8 @@ class ICloudProvider {
* @param token token used to be serialized
* @return serialized session with json compact
*/
static std::string serializeSession(const std::string& token,
const Hints& hints);
static std::string storeSession(const std::string& token,
const Hints& hints);
/**
* Serializes token and hints in a compact json that are useful to be
......@@ -176,8 +176,8 @@ class ICloudProvider {
* @param token pointer to the token unserialized
* @return returns false if fails to unserialized
*/
static bool unserializeSession(const std::string& serialized_data,
std::string& token, Hints& hints);
static bool restoreSession(const std::string& serialized_data,
std::string& token, Hints& hints);
/**
* Token which should be saved and reused as a parameter to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment