Android Open Source - bankomatinfos Abstract Transaction Log Entry






From Project

Back to project page bankomatinfos.

License

The source code is released under:

GNU General Public License

If you think the Android project bankomatinfos 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 at.zweng.bankomatinfos.model;
/* w  ww .ja va 2  s . co m*/
import java.util.Date;

/**
 * base class for transaction log entries
 * 
 * @author john
 */
public abstract class AbstractTransactionLogEntry {

  protected Date _transactionTimestamp;
  protected long _amount;
  protected int _atc;
  protected String _currency;
  private byte[] _rawEntry;
  protected boolean _hasTime;

  /**
   * @return the _transactionTimestamp
   */
  public Date getTransactionTimestamp() {
    return _transactionTimestamp;
  }

  /**
   * @param transactionTimestamp
   *            the _transactionTimestamp to set
   * @param true if timestamp also contains time (not just date)
   */
  public void setTransactionTimestamp(Date transactionTimestamp,
      boolean includesTime) {
    this._transactionTimestamp = transactionTimestamp;
    this._hasTime = includesTime;
  }

  /**
   * @return the _amount
   */
  public long getAmount() {
    return _amount;
  }

  /**
   * @param _amount
   *            the _amount to set
   */
  public void setAmount(long amount) {
    this._amount = amount;
  }

  /**
   * @return the _currency
   */
  public String getCurrency() {
    return _currency;
  }

  /**
   * @param _currency
   *            the _currency to set
   */
  public void setCurrency(String currency) {
    this._currency = currency;
  }

  /**
   * @return the _atc (application transaction counter)
   */
  public int getAtc() {
    return _atc;
  }

  /**
   * @param atc
   *            the _atc (application transaction counter) to set
   */
  public void setAtc(int atc) {
    this._atc = atc;
  }

  /**
   * @return the _rawEntry
   */
  public byte[] getRawEntry() {
    return _rawEntry;
  }

  /**
   * @param _rawEntry
   *            the _rawEntry to set
   */
  public void setRawEntry(byte[] rawEntry) {
    this._rawEntry = rawEntry;
  }

  /**
   * @return <code>true</code> if timestamp contains date + time,
   *         <code>false</code> otherwise
   */
  public boolean hasTime() {
    return _hasTime;
  }

}




Java Source Code List

at.zweng.bankomatinfos.AppController.java
at.zweng.bankomatinfos.exceptions.NoSmartCardException.java
at.zweng.bankomatinfos.exceptions.TlvParsingException.java
at.zweng.bankomatinfos.iso7816emv.BERTLV.java
at.zweng.bankomatinfos.iso7816emv.ByteArrayWrapper.java
at.zweng.bankomatinfos.iso7816emv.CPLC.java
at.zweng.bankomatinfos.iso7816emv.EMVTags.java
at.zweng.bankomatinfos.iso7816emv.EmvTag.java
at.zweng.bankomatinfos.iso7816emv.EmvUtils.java
at.zweng.bankomatinfos.iso7816emv.GPTags.java
at.zweng.bankomatinfos.iso7816emv.Iso3166CountryCodes.java
at.zweng.bankomatinfos.iso7816emv.Iso4217CurrencyCodes.java
at.zweng.bankomatinfos.iso7816emv.NfcBankomatCardReader.java
at.zweng.bankomatinfos.iso7816emv.TagAndValue.java
at.zweng.bankomatinfos.iso7816emv.TagImpl.java
at.zweng.bankomatinfos.iso7816emv.TagType.java
at.zweng.bankomatinfos.iso7816emv.TagValueType.java
at.zweng.bankomatinfos.model.AbstractTransactionLogEntry.java
at.zweng.bankomatinfos.model.CardInfo.java
at.zweng.bankomatinfos.model.EmvTransactionLogEntry.java
at.zweng.bankomatinfos.model.InfoKeyValuePair.java
at.zweng.bankomatinfos.model.QuickTransactionLogEntry.java
at.zweng.bankomatinfos.ui.AboutDialogFragment.java
at.zweng.bankomatinfos.ui.ChangelogDialogFragment.java
at.zweng.bankomatinfos.ui.ListAdapterEmvTransactions.java
at.zweng.bankomatinfos.ui.ListAdapterInfos.java
at.zweng.bankomatinfos.ui.ListAdapterQuickTransactions.java
at.zweng.bankomatinfos.ui.MainActivity.java
at.zweng.bankomatinfos.ui.NfcDisabledActivity.java
at.zweng.bankomatinfos.ui.ResultActivity.java
at.zweng.bankomatinfos.ui.ResultEmvTxListFragment.java
at.zweng.bankomatinfos.ui.ResultInfosListFragment.java
at.zweng.bankomatinfos.ui.ResultLogFragment.java
at.zweng.bankomatinfos.ui.ResultQuickTxListFragment.java
at.zweng.bankomatinfos.ui.SettingsActivity.java
at.zweng.bankomatinfos.util.ChangeLog.java
at.zweng.bankomatinfos.util.CustomAlertDialog.java
at.zweng.bankomatinfos.util.Utils.java