Hitman666 / nbCcTalkCoinAcceptor

This project contains usage instructions and code examples (C#) for communication with coin acceptor using the ccTalk protocol
29 stars 19 forks source link

hello I added a couple of features #1

Closed solarin closed 11 years ago

solarin commented 11 years ago

public CoinIndex AllowedCoins { get { return _allowedCoins; } set { if (_allowedCoins == value) return; _allowedCoins = value; _rawDev.CmdModifyInhibitStatus((byte)_allowedCoins, (byte)((int)_allowedCoins >> 8)); } }

  public void ModifyAcceptedCoins(Dictionary<Byte, CoinTypeInfo> coins)
    {
        if (coins != null)
            foreach (var coin in coins)
                _coins[coin.Key] = coin.Value;
    }