예제 #1
0
        private BankInfo CreateBankInfo(int ID, string name, string URI, string pattern, int buy, int sell)
        {
            var bankID      = BankID.Create(ID);
            var bankName    = BankName.Create(name);
            var bankURI     = BankURI.Create(URI);
            var bankPattern = BankPattern.Create(pattern);
            var bankBuy     = BankIndex.Create(buy);
            var bankSell    = BankIndex.Create(sell);

            return(new BankInfo(bankID, bankName, bankURI, bankPattern, bankBuy, bankSell));
        }
예제 #2
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;
        }
예제 #3
0
        public void ChangeURI(BankURI bankURI)
        {
            CheckParameter(bankURI, nameof(bankURI));

            this.URI = bankURI;
        }