Android Open Source - SMSAlive Factory






From Project

Back to project page SMSAlive.

License

The source code is released under:

Apache License

If you think the Android project SMSAlive listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.futuretech.app.smsalive.utils;
/*from   ww w. j a v a2 s  .  c o  m*/
import com.futuretech.app.smsalive.Domain.models.AccountTransaction;

import org.joda.time.DateTime;
import org.joda.time.LocalDate;

import java.util.Date;
import java.util.HashMap;

/**
 * Created by ironhulk on 2014/11/28.
 */
public class Factory {

    public static AccountTransaction buildAccountTransaction(HashMap<String,String> accountTransValues){
        AccountTransaction ac = new AccountTransaction();
        ac.setAccountNumber(accountTransValues.get("accountNumber"));
        ac.setAccountType(accountTransValues.get("accountType"));
        ac.setAccountBalance(Double.valueOf(accountTransValues.get("accountBalance")));
        ac.setTransactionAmount(Double.valueOf(accountTransValues.get("transactionAmount")));
        ac.setTransactionDate(new LocalDate(accountTransValues.get("transactionDate")));
        ac.setTransactionPlace(accountTransValues.get("transactionPlace"));
        ac.setAccountType(accountTransValues.get("transactionType"));
        return ac;
    }

}




Java Source Code List

com.futuretech.app.smsalive.ApplicationTest.java
com.futuretech.app.smsalive.Test.java
com.futuretech.app.smsalive.Application.Services.ApplicationServices.java
com.futuretech.app.smsalive.Application.Services.TranscactionTypeHandler.java
com.futuretech.app.smsalive.Application.Services.impl.ApplicationServicesImpl.java
com.futuretech.app.smsalive.Application.Services.impl.DepositHandler.java
com.futuretech.app.smsalive.Application.Services.impl.PurchaseHandler.java
com.futuretech.app.smsalive.Application.Services.impl.WithDrawalHandler.java
com.futuretech.app.smsalive.Domain.crud.AccountTransactionCrudService.java
com.futuretech.app.smsalive.Domain.crud.impl.AccountTransactionCrudServiceImpl.java
com.futuretech.app.smsalive.Domain.models.AccountTransaction.java
com.futuretech.app.smsalive.Presentation.activities.InitializingData.java
com.futuretech.app.smsalive.Presentation.fragments.InitialDataGathering.java
com.futuretech.app.smsalive.Presentation.fragments.WelcomeFragment.java
com.futuretech.app.smsalive.Presentation.services.DataGatheringService.java
com.futuretech.app.smsalive.repository.DBHelper.java
com.futuretech.app.smsalive.repository.RepositoryUtil.java
com.futuretech.app.smsalive.utils.Constants.java
com.futuretech.app.smsalive.utils.Factory.java
com.futuretech.app.smsalive.utils.TransactionTypes.java