public final class Metered extends Object
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
getConsumptionCredit()
Gets consumption credit
|
static BigDecimal |
getConsumptionQuantity()
Gets consumption file size
|
static void |
increaseCount(double uploadMeteringSize)
Increases data counter for absolute value
|
static boolean |
isEvaluation()
Gets evaluation status
|
static void |
resetMeteredKey()
Removes previously setup license
|
static void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key
|
public static void setMeteredKey(String publicKey, String privateKey)
publicKey
- public keyprivateKey
- private keycom.aspose.ms.System.ArgumentNullException
- if publicKey is null or privateKey is null or publicKey is empty or privateKey is emptycom.aspose.ms.System.InvalidOperationException
- Authentication failed.public static BigDecimal getConsumptionQuantity()
public static boolean isEvaluation()
public static void increaseCount(double uploadMeteringSize)
uploadMeteringSize
- number of bytes to increasepublic static void resetMeteredKey()
Removes previously setup license
public static BigDecimal getConsumptionCredit()
Gets consumption credit