Constructor and Description |
---|
Metered()
Initializes a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static double |
getConsumptionCredit()
Gets consumption credit
|
static double |
getConsumptionQuantity()
Gets consumption file size
|
void |
setMeteredKey(java.lang.String publicKey,
java.lang.String privateKey)
Sets metered public and private key
|
public void setMeteredKey(java.lang.String publicKey, java.lang.String privateKey) throws java.lang.Exception
setMeteredKey
in interface IMetered
publicKey
- public keyprivateKey
- private keyjava.lang.Exception
- if any problems with public and private keys are found.public static double getConsumptionQuantity() throws java.lang.Exception
java.lang.Exception
- if any problems with Metered key are found.public static double getConsumptionCredit() throws java.lang.Exception
java.lang.Exception