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()
Retrieves amount of MBs processed.
|
static void |
increaseBytesCount(double bytesCount)
Increase customer consumption file size
|
static void |
increaseCreditsByOne()
Increase customer consumption credit.
|
protected void |
setMeteredKey(String publicKey,
String privateKey)
Sets metered public and private key
|
public static double getConsumptionCredit() throws Exception
Exception
public static double getConsumptionQuantity() throws Exception
Retrieves amount of MBs processed.
Following example demonstrates how to retrieve amount of MBs processed.string publicKey = "Public Key"; string privateKey = "Private Key"; Metered metered = new Metered(); metered.SetMeteredKey(publicKey, privateKey); decimal mbProcessed = Metered.GetConsumptionQuantity();
Exception
public static void increaseBytesCount(double bytesCount)
bytesCount
- bytes countpublic static void increaseCreditsByOne()
Copyright © 2019. All rights reserved.