PrivilegesService

Protocols

Protocol IDName
35PrivilegesProtocol

PrivilegesProtocol

Method IDSignature
1
func GetPrivileges(localeCode: string) -> (privileges: std_map<uint32, [[Privilege]]((privilege))>)
2
func ActivateKey(uniqueKey: string, languageCode: string) -> (privilege: [[PrivilegeGroup]]((privilegegroup)))
3
func ActivateKeyWithExpectedPrivileges(uniqueKey: string, languageCode: string, expectedPrivilegeIDs: qlist<uint32>) -> (privilege: [[PrivilegeGroup]]((privilegegroup)))
4
func GetPrivilegeRemainDuration(privilegeID: uint32) -> (seconds: int32)
5
func GetExpiredPrivileges() -> (expiredPrivileges: qlist<[[PrivilegeEx]]((privilegeex))>)
6
func GetPrivilegesEx(localeCode: string) -> (privilegesEx: qlist<[[PrivilegeEx]]((privilegeex))>)