public class Metered extends Object
Provides methods to set metered key.
<p>In this example, an attempt will be made to set metered public and private key:</p> <pre lang="C#"> Metered matered = new Metered(); matered.SetMeteredKey("PublicKey", "PrivateKey");
Constructor and Description |
---|
Metered()
Initializes a new instance of the
Metered class. |
Modifier and Type | Method and Description |
---|---|
static double |
getConsumptionQuantity()
Gets a consumption quantity.
|
void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key.
|
public final void setMeteredKey(String publicKey, String privateKey) throws Exception
Sets metered public and private key.
publicKey
- A public key.privateKey
- A private keyException
public static double getConsumptionQuantity()
Gets a consumption quantity.
Copyright © 2018. All rights reserved.