C# 클래스 FeliCa2Money.FelicaCard

FeliCa カードクラス
상속: Account, IDisposable
파일 보기 프로젝트 열기: tmurakam/felica2money

보호된 프로퍼티들

프로퍼티 타입 설명
mBlocksPerTransaction int
mMaxTransactions int
mNeedCalcValue bool
mNeedReverse bool
mServiceCode int
mSystemCode int

공개 메소드들

메소드 설명
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 解析

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CalcValueFromBalance ( TransactionList transactions ) : void

메소드 상세

Dispose() 공개 메소드

Dispose 処理
public Dispose ( ) : void
리턴 void

PostProcess() 보호된 메소드

後処理
protected PostProcess ( TransactionList transactions ) : void
transactions TransactionList
리턴 void

ReadTransactions() 공개 메소드

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

ReadTransactions() 공개 최종 메소드

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

analyzeCardId() 공개 메소드

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

analyzeTransaction() 공개 추상적인 메소드

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

binString() 보호된 메소드

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

read2b() 보호된 메소드

protected read2b ( byte b, int pos ) : int
b byte
pos int
리턴 int

read2l() 보호된 메소드

protected read2l ( byte b, int pos ) : int
b byte
pos int
리턴 int

read3b() 보호된 메소드

protected read3b ( byte b, int pos ) : int
b byte
pos int
리턴 int

read4b() 보호된 메소드

protected read4b ( byte b, int pos ) : int
b byte
pos int
리턴 int

프로퍼티 상세

mBlocksPerTransaction 보호되어 있는 프로퍼티

protected int mBlocksPerTransaction
리턴 int

mMaxTransactions 보호되어 있는 프로퍼티

protected int mMaxTransactions
리턴 int

mNeedCalcValue 보호되어 있는 프로퍼티

protected bool mNeedCalcValue
리턴 bool

mNeedReverse 보호되어 있는 프로퍼티

protected bool mNeedReverse
리턴 bool

mServiceCode 보호되어 있는 프로퍼티

protected int mServiceCode
리턴 int

mSystemCode 보호되어 있는 프로퍼티

protected int mSystemCode
리턴 int