示例#1
0
 /// <summary>
 /// Create proper typed Account from OFX object
 /// </summary>
 /// <param name="ofxAccount">OFX BankAccount object</param>
 /// <returns></returns>
 public new static Account Create(Protocol.BankAccount ofxAccount)
 {
     // Route to proper constructor
     if (ofxAccount.ACCTTYPE == AccountEnum.SAVINGS)
     {
         return(new SavingsAccount(ofxAccount));
     }
     return(new CheckingAccount(ofxAccount));
 }
示例#2
0
 /// <summary>
 /// Internal constructor so derived classes can have alternate constructors
 /// </summary>
 protected BankAccount(Protocol.BankAccount ofxAccount) :
     base("", true, ofxAccount.ACCTID)
 {
     RoutingId = ofxAccount.BANKID;
     //AccountId = ofxAccount.ACCTID;
 }
示例#3
0
 public CheckingAccount(Protocol.BankAccount ofxAccount) :
     base(ofxAccount)
 {
     // Stub - ensures the type is correct even though no extra content from parent
 }
示例#4
0
 /// <summary>
 /// Create proper typed Account from OFX object
 /// </summary>
 /// <param name="ofxAccount">OFX BankAccount object</param>
 /// <returns></returns>
 public static Account Create(Protocol.BankAccount ofxAccount)
 {
     return(BankAccount.Create(ofxAccount));
 }