Switchboard SDK
|
Handles the licenses and usage tracking. More...
#include <LicenseManager.hpp>
Public Member Functions | |
LicenseManager (const std::string &apiURL, const std::string &clientID, const std::string &clientSecret, const std::string &platform, const std::string &appID, const std::string &deviceID) | |
~LicenseManager () | |
LicenseSession & | activateSession (const std::string &licenseName) |
Handles the licenses and usage tracking.
LicenseManager class.
switchboard::LicenseManager::LicenseManager | ( | const std::string & | apiURL, |
const std::string & | clientID, | ||
const std::string & | clientSecret, | ||
const std::string & | platform, | ||
const std::string & | appID, | ||
const std::string & | deviceID ) |
Initializes the LicenseManager instance.
apiURL | URL of the API backend. |
clientID | ID of the client. |
clientSecret | Secret of the client. |
platform | Name of the platform (e.g. ios, android). |
appID | Identifier of the main application. |
deviceID | Unique identifier of the device. |
switchboard::LicenseManager::~LicenseManager | ( | ) |
Deinitializes the LicenseManager
LicenseSession & switchboard::LicenseManager::activateSession | ( | const std::string & | licenseName | ) |
Activates a session with the provided name.
licenseName | The desired license to be activated. |