UserInfo¶
-
class
Cocotec.CocoPlatform.Coco.UserInfo
¶ Represents information about the current user.
Public Functions
-
Cocotec.CocoPlatform.Coco.LicenseResponse
HasLicense
(List<Cocotec.CocoPlatform.ProductFeature> features, bool acquire)¶ Ensures that this user has a license to use the given features. If acquire is true and the user does not currently have a valid license, this will block and open up a web browser where the user can login to obtain a license.
-
List<Cocotec.CocoPlatform.Coco.LicenseDescriptor>
LicenseInfo
()¶
-
string
LicenseServerReachable
()¶ Determines if the Cocotec license server is reachable.
- Return
- an empty string if the server is reachable, and an error otherwise.
-
bool
CrashReportingConsent
()¶ Returns the status of the user’s crash reporting status.
-
void
SetCrashReportingConsent
(bool consented)¶ Sets the status of the user’s crash reporting status.
-
Cocotec.CocoPlatform.Coco.LicenseResponse
AddOfflineActivationResponse
(string token)¶ Installs the token as a local license If the installation fails, an error message will be returned in the response data string
-
Cocotec.CocoPlatform.Coco.LicenseResponse
GetOfflineActivationUrl
()¶ Retrieves a URL which can be used to obtain a license for this machine. If successful, the response data string will contain the URL. If this call fails, the response data string will contain an error message.
-
string
ForceRefresh
()¶ Forces a refresh of all of the license information, even if it is still valid.
- Return
- If an error occured, then a string describing the error.
-
Cocotec.CocoPlatform.Coco.LicenseResponse