3.3.4.1 Licence Key Decoding
LicInfo IndoorTouch.LicUnpackProductKey(String productCode, String serial);
ProductCode is a key with alphanumeric characters in the following format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX.
Serial provides the serial number assigned to the product key in the following format: ##-####-####.
The function unpacks information into the IndoorTouch.LicInfo static class:
static public class LicInfo { public boolean valid; public int hours; public int flags; }
Valid defines that the licence key is valid for the selected serial number. Hours defines the count of licensed hours: 0 means no hour limit. Flags denotes licence attributes: 1 means a possibility to install customer applications.
The function allows 10 calls in 5 seconds at most. Further 10 calls are allowed in the next 5 seconds. When all the attempts are exhausted or a system error occurs, the method returns null.