C# Class FeliCa2Money.FelicaCard

FeliCa カードクラス
Inheritance: Account, IDisposable
Datei anzeigen Open project: tmurakam/felica2money

Protected Properties

Property Type Description
mBlocksPerTransaction int
mMaxTransactions int
mNeedCalcValue bool
mNeedReverse bool
mServiceCode int
mSystemCode int

Public Methods

Method Description
Dispose ( ) : void

Dispose 処理

ReadTransactions ( IFelica f ) : TransactionList

カード読み込み Note: 本来はこのメソッドは private で良いが、UnitTest 用に public にしてある。

ReadTransactions ( ) : void

カード読み込み

analyzeCardId ( IFelica f ) : bool

カード ID 取得

analyzeTransaction ( Transaction t, byte data ) : bool

Transaction 解析

Protected Methods

Method Description
PostProcess ( TransactionList transactions ) : void

後処理

binString ( byte data, int offset, int len ) : string

バイナリデータを16進文字列に変換

read2b ( byte b, int pos ) : int
read2l ( byte b, int pos ) : int
read3b ( byte b, int pos ) : int
read4b ( byte b, int pos ) : int

Private Methods

Method Description
CalcValueFromBalance ( TransactionList transactions ) : void

Method Details

Dispose() public method

Dispose 処理
public Dispose ( ) : void
return void

PostProcess() protected method

後処理
protected PostProcess ( TransactionList transactions ) : void
transactions TransactionList
return void

ReadTransactions() public method

カード読み込み Note: 本来はこのメソッドは private で良いが、UnitTest 用に public にしてある。
public ReadTransactions ( IFelica f ) : TransactionList
f IFelica
return TransactionList

ReadTransactions() public final method

カード読み込み
public final ReadTransactions ( ) : void
return void

analyzeCardId() public method

カード ID 取得
public analyzeCardId ( IFelica f ) : bool
f IFelica
return bool

analyzeTransaction() public abstract method

Transaction 解析
public abstract analyzeTransaction ( Transaction t, byte data ) : bool
t Transaction
data byte
return bool

binString() protected method

バイナリデータを16進文字列に変換
protected binString ( byte data, int offset, int len ) : string
data byte
offset int
len int
return string

read2b() protected method

protected read2b ( byte b, int pos ) : int
b byte
pos int
return int

read2l() protected method

protected read2l ( byte b, int pos ) : int
b byte
pos int
return int

read3b() protected method

protected read3b ( byte b, int pos ) : int
b byte
pos int
return int

read4b() protected method

protected read4b ( byte b, int pos ) : int
b byte
pos int
return int

Property Details

mBlocksPerTransaction protected_oe property

protected int mBlocksPerTransaction
return int

mMaxTransactions protected_oe property

protected int mMaxTransactions
return int

mNeedCalcValue protected_oe property

protected bool mNeedCalcValue
return bool

mNeedReverse protected_oe property

protected bool mNeedReverse
return bool

mServiceCode protected_oe property

protected int mServiceCode
return int

mSystemCode protected_oe property

protected int mSystemCode
return int