Class responsible for managing licensing and allowing server communication.
More...
|
| enum | Status {
NotInitialized = 0
, OK
, KeyValidationInProgress
, NetworkError
,
InvalidKey
, NotRegistered
, NoMaintance
, Expired
} |
| | Status of license validation. More...
|
| |
Class responsible for managing licensing and allowing server communication.
◆ Status
Status of license validation.
◆ GetStatus()
Returns current status of license validation for specified effect.
Never returns NotInitialized, since it initialized validation in this case.
◆ IsLicenseVerified()
Checks whether license is verified for specified effect.
- Returns
- True if license is valid, false otherwise.
◆ CheckKeysFormat()
| static bool CheckKeysFormat |
( |
string |
keys | ) |
|
|
inlinestatic |
Checks whether specified string is correctly formated list of keys.
◆ IsGenerationAvailable()
| bool IsGenerationAvailable |
( |
| ) |
|
|
inline |
Checks whether generation is available.
- Returns
- True if license is valid and not expired, false otherwise.
◆ GetErrorMessage() [1/2]
| string GetErrorMessage |
( |
Status |
status | ) |
|
|
inline |
Returns human readable string explaining error based on Status.
◆ GetErrorMessage() [2/2]
Returns human readable string explaining current error with activation of specified effect.
◆ GetGenerationErrorMessage()
| string GetGenerationErrorMessage |
( |
| ) |
|
|
inline |
Returns human readable string explaining current error with generation availability.
◆ GetInstance()
Returns singleton of this class.
Creates and initializes instance if needed.
◆ RegisterKey()
| void RegisterKey |
( |
string |
key | ) |
|
|
inline |
Sets license key and starts key validation process.
◆ ValidateLicense()
| void ValidateLicense |
( |
string[] |
keys | ) |
|
|
inline |
Sets list of license keys and starts key validation process.
◆ RemoveKey()
Removes current license key.
◆ PluginLicenseKeys
| string [] PluginLicenseKeys = new string[0] |
|
get |
License key used for the plugin.
Not necessarily correct. Use IsLicenseVerified to check for that.
May be empty.
◆ GenerationLicenseKey
| string GenerationLicenseKey = "" |
|
get |
License key used for the generation.
It's either validated key suitable for generation or an empty string.
◆ GenerationURL
| string GenerationURL = "" |
|
get |
URL address for generation API.
Includes GenerationLicenseKey in the URL.
◆ ServerErrorMessage
| string ServerErrorMessage = "" |
|
get |
Human readable error message string returned from server.
The documentation for this class was generated from the following file:
- Assets/Plugins/Zibra/Common/Scripts/SDFObjects/Editor/ServerAuthManager.cs