Skip to content

Privileges Protocol

Yannik Marchand edited this page Jan 27, 2021 · 1 revision

NEX Protocols > Privileges (35)

Method ID Method Name
1 GetPrivileges
2 ActivateKey
3 ActivateKeyWithExpectedPrivileges
4 GetPrivilegeRemainDuration
5 GetExpiredPrivileges
6 GetPrivilegesEx

(1) GetPrivileges

Request

Type Name
String localeCode

Response

Type Name
Map<Uint32, Privilege> privileges

(2) ActivateKey

Request

Type Name
String uniqueKey
String languageCode

Response

Type Name
PrivilegeGroup privilege

(3) ActivateKeyWithExpectedPrivileges

Request

Type Name
String uniqueKey
String languageCode
List<Uint32> expectedPrivilegeIDs

Response

Type Name
PrivilegeGroup privilege

(4) GetPrivilegeRemainDuration

Request

Type Name
Uint32 privilegeID

Response

Type Name
Sint32 seconds

(5) GetExpiredPrivileges

Request

This method does not take any parameters.

Response

Type Name
List<PrivilegeEx> expiredPrivileges

(6) GetPrivilegesEx

Request

Type Name
String localeCode

Response

Type Name
List<PrivilegeEx> privilegesEx

Types

Privilege (Structure)

Type Name
Uint32 m_ID
String m_description

PrivilegeEx (Structure)

Type Name
Uint32 m_ID
String m_description
Sint32 m_duration

PrivilegeGroup (Structure)

Type Name
String m_description
List<Privilege> m_privileges
Clone this wiki locally