public void SetData(object data) { OpenAcctData tempData = data as OpenAcctData; if (tempData != null) { acctData = tempData; } }
public MessageData GetData() { MessageData data = new MessageData(); if (acctData != null) { Transaction tx = new Transaction(); tx.acctFirstName = acctData.firstName; tx.acctLastName = acctData.lastName; tx.txOperation = "open"; tx.txAmount = acctData.deposit; tx.acctType = acctData.acctType; data.name = "openacct"; data.message = tx; data.id = MsgType; } // Prevent data ringing acctData = null; return(data); }