GetConsumptionCredit

Metered.GetConsumptionCredit method

Ανακτά τον αριθμό των πιστώσεων που καταναλώθηκαν.

public static decimal GetConsumptionCredit()

Παραδείγματα

Το παρακάτω παράδειγμα δείχνει πώς να ανακτήσετε τον αριθμό των πιστώσεων που καταναλώθηκαν.

string publicKey = "Public Key";
string privateKey = "Private Key";

Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);

decimal creditsConsumed = Metered.GetConsumptionCredit();

Δείτε επίσης