![2N Indoor Touch Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/2n/indoor-touch/indoor-touch_api-manual_3088993019.webp)
2N TELEKOMUNIKACE a.s., www.2n.cz
19/42
3.3.4 Licence
3.3.4.4 Product Key Validity Detection
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-
.
X X X X X - X X X X X - X X X X X - X X X X X
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
3.3.4.2 Product Key Getting
String IndoorTouch.LicGetProductKey();