Package com.wesabe.api.accounts.presenters

Source Code of com.wesabe.api.accounts.presenters.FinancialInstPresenter

package com.wesabe.api.accounts.presenters;

import com.wesabe.api.accounts.entities.FinancialInst;
import com.wesabe.xmlson.XmlsonObject;

/**
* A presenter for {@link FinancialInst} instances.
*
* @author brad
*
*/
public class FinancialInstPresenter {
  public FinancialInstPresenter() {}

  public XmlsonObject present(FinancialInst financialInst) {
    final XmlsonObject result = new XmlsonObject("financial-institution");
    result.addProperty("name", financialInst.getName());
    result.addProperty("id", financialInst.getWesabeId());
    return result;
  }

}
TOP

Related Classes of com.wesabe.api.accounts.presenters.FinancialInstPresenter

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.