Skip to content

Commit b926fca

Browse files
authored
Merge pull request #43 from cryptlex/huzaif/get-entitlement-tier
feat: add entitlement set tier
2 parents a59ea70 + a7ce83f commit b926fca

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/main/java/com/cryptlex/lexfloatclient/LexFloatClient.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,22 @@ public static String GetHostLicenseEntitlementSetDisplayName() throws LexFloatCl
374374
throw new LexFloatClientException(status);
375375
}
376376

377+
/**
378+
* Gets the tier of the entitlement set associated with the LexFloatServer license.
379+
*
380+
* @return Returns the host license entitlement set tier.
381+
* @throws LexFloatClientException
382+
*/
383+
public static long GetHostLicenseEntitlementSetTier() throws LexFloatClientException {
384+
int status;
385+
LongByReference tier = new LongByReference(0);
386+
status = LexFloatClientNative.GetHostLicenseEntitlementSetTier(tier);
387+
if (LF_OK == status) {
388+
return tier.getValue();
389+
}
390+
throw new LexFloatClientException(status);
391+
}
392+
377393
/**
378394
* Gets the feature entitlements associated with the LexFloatServer license.
379395
*

src/main/java/com/cryptlex/lexfloatclient/LexFloatClientNative.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public interface CallbackType extends Callback {
7171

7272
public static native int GetHostLicenseEntitlementSetDisplayName(CharBuffer displayName, int length);
7373

74+
public static native int GetHostLicenseEntitlementSetTier(LongByReference tier);
75+
7476
public static native int GetHostFeatureEntitlementsInternal(ByteBuffer featureEntitlementsJson, int length);
7577

7678
public static native int GetHostFeatureEntitlementsInternal(CharBuffer featureEntitlementsJson, int length);

0 commit comments

Comments
 (0)