Android Open Source - bankomatinfos Quick 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  w  w . j  a  va 2s.  c  o  m*/
import static at.zweng.bankomatinfos.util.Utils.byte2Hex;
import static at.zweng.bankomatinfos.util.Utils.formatBalance;
import static at.zweng.bankomatinfos.util.Utils.formatDateWithTime;

/**
 * represents transaction logs for Quick (Austrian e-purse system)
 * 
 * @author john
 */
public class QuickTransactionLogEntry extends AbstractTransactionLogEntry {

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

  private long _amount2;
  private long _remainingBalance;
  private long _terminalInfos1;
  private long _terminalInfos2;
  private Byte _unknownByte1;
  private Byte _unknownByte2;

  public long getAmount2() {
    return _amount2;
  }

  public void setAmount2(long _amount2) {
    this._amount2 = _amount2;
  }

  public Byte getUnknownByte1() {
    return _unknownByte1;
  }

  public void setUnknownByte1(Byte _unknownByte1) {
    this._unknownByte1 = _unknownByte1;
  }

  public Byte getUnknownByte2() {
    return _unknownByte2;
  }

  public void setUnknownByte2(Byte _unknownByte2) {
    this._unknownByte2 = _unknownByte2;
  }

  public long getRemainingBalance() {
    return _remainingBalance;
  }

  public void setRemainingBalance(long _remainingBalance) {
    this._remainingBalance = _remainingBalance;
  }

  public long getTerminalInfos1() {
    return _terminalInfos1;
  }

  public void setTerminalInfos1(long _terminalInfos1) {
    this._terminalInfos1 = _terminalInfos1;
  }

  public long getTerminalInfos2() {
    return _terminalInfos2;
  }

  public void setTerminalInfos2(long _terminalInfos2s) {
    this._terminalInfos2 = _terminalInfos2s;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder(
        "QuickTransactionLogEntry [\n  - transactionTimestamp: ");
    sb.append(formatDateWithTime(_transactionTimestamp));
    sb.append("\n  - includes time: " + _hasTime);
    sb.append("\n  - amount: ");
    sb.append(formatBalance(_amount));
    sb.append("\n  - amount2: ");
    sb.append(formatBalance(_amount2));
    sb.append("\n  - remaining balance: ");
    sb.append(formatBalance(_remainingBalance));
    sb.append("\n  - atc: " + _atc);
    sb.append("\n  - currency: " + _currency);
    if (_unknownByte1 != null) {
      sb.append("\n  - unknown byte 1: ");
      sb.append(byte2Hex(_unknownByte1));
    }
    if (_unknownByte2 != null) {
      sb.append("\n  - unknown byte 2: ");
      sb.append(byte2Hex(_unknownByte2));
    }
    sb.append("\n  - terminal info 1: " + _terminalInfos1);
    sb.append("\n  - terminal info 2: " + _terminalInfos2);
    sb.append("\n");
    return sb.toString();
  }

}




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