} //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; }
public void ChangeSellIndex(BankIndex sellIndex) { CheckParameter(sellIndex, nameof(sellIndex)); this.Sell = sellIndex; }
public void ChangeBuyIndex(BankIndex buyIndex) { CheckParameter(buyIndex, nameof(buyIndex)); this.Buy = buyIndex; }