void OnLevelData(Hashtable data) { //PrintHashTable("levelrewards", data); this._status = new LevelRewardsStatus(data); _level = this._status.Level; if (OnLevelChange != null) { OnLevelChange(_status); } }
public override void Initialize(Config config) { _balance = 0; _api = new WalletAPI(Hub.ApiEndPoint); _config = config.WalletConfig; _bonusItems = new List <RedeemerItem>(); _payouts = new List <IAP.Item>(); _verify = new List <IAP.Transaction>(); _VerifyAgain = new List <SupplementTransaction>(); _lastFetchTime = 0; if (_config.Listener == null) { throw new System.ArgumentNullException("Missing wallet listener"); } }
public void StoreBalance(Hashtable data) { _balance = Dot.Integer("balance", data, Balance); _config.Listener.OnBalanceUpdated(Balance); }
public override void Disconnect(bool isLogout) { _balance = 0; }
public override void OnLoggedIn() { base.OnLoggedIn(); _level = CurLevel = 0; }