Esempio n. 1
0
        }                                           //which Regex.Match corresponds to the sell rate

        public BankInfo(BankID id, BankName name, BankURI uri,
                        BankPattern pattern, BankIndex buy, BankIndex sell)
        {
            CheckParameter(id, nameof(id));
            CheckParameter(name, nameof(name));
            CheckParameter(uri, nameof(uri));
            CheckParameter(pattern, nameof(pattern));
            CheckParameter(buy, nameof(buy));
            CheckParameter(sell, nameof(sell));

            this.ID      = id;
            this.Name    = name;
            this.URI     = uri;
            this.Pattern = pattern;
            this.Buy     = buy;
            this.Sell    = sell;
        }
Esempio n. 2
0
        public void ChangeSellIndex(BankIndex sellIndex)
        {
            CheckParameter(sellIndex, nameof(sellIndex));

            this.Sell = sellIndex;
        }
Esempio n. 3
0
        public void ChangeBuyIndex(BankIndex buyIndex)
        {
            CheckParameter(buyIndex, nameof(buyIndex));

            this.Buy = buyIndex;
        }