nicepass

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FELICA_POLLING_NICEPASS = uint16(C.FELICA_POLLING_NICEPASS) // nice-passシステムコード

	FELICA_SC_NICEPASS_ATTR  = uint16(C.FELICA_SC_NICEPASS_ATTR)  // nice-pass属性情報・サービスコード
	FELICA_SC_NICEPASS_VALUE = uint16(C.FELICA_SC_NICEPASS_VALUE) // nice-pass利用履歴データ・サービスコード
)

Variables

View Source
var SystemCodes = map[uint16]string{
	FELICA_POLLING_NICEPASS: "nice-pass",
}

システムコード・リスト

Functions

This section is empty.

Types

type Nicepass

type Nicepass struct {
	Attr NicepassAttr     // 属性情報
	Hist []*NicepassValue // 利用履歴
	// contains filtered or unexported fields
}

nice-pass/遠州鉄道

func (*Nicepass) Name

func (nicepass *Nicepass) Name() string

カード名

func (*Nicepass) Read

func (nicepass *Nicepass) Read()

カード情報を読込む

func (*Nicepass) ShowInfo

func (nicepass *Nicepass) ShowInfo(options *felica.Options)

カード情報を表示する

type NicepassAmount

type NicepassAmount struct {
	Charge  int // チャージ金額残額
	Premium struct {
		Kind   int // プレミアム残額種別
		Amount int // プレミアム残額
	}
}

nice-pass残額

type NicepassAttr

type NicepassAttr struct {
	Amounts    []NicepassAmount // 残額1~4
	Date       time.Time        // 利用日
	InTime     time.Time        // 乗車時刻
	OutTime    time.Time        // 降車時刻
	Type       int              // 端末種
	Proc       int              // 処理
	Use        int              // 直近利用金額(支払いはマイナス)
	Balance    int              // 直近残額
	InStation  int              // 乗車駅
	OutStation int              // 降車駅
	No         int              // 取引通番

	Raw [][]byte // Rawデータ
}

nice-pass属性情報データ

func (*NicepassAttr) InStationName

func (attr *NicepassAttr) InStationName() interface{}

乗車駅

func (*NicepassAttr) OutStationName

func (attr *NicepassAttr) OutStationName() interface{}

降車駅

func (*NicepassAttr) ProcName

func (attr *NicepassAttr) ProcName() interface{}

処理

func (*NicepassAttr) TypeName

func (attr *NicepassAttr) TypeName() interface{}

端末種

type NicepassValue

type NicepassValue struct {
	DateTime   time.Time // 処理日時
	Train      int       // 装置番号
	InStation  int       // 乗車駅
	OutStation int       // 降車駅
	Type       int       // 端末種
	Proc       int       // 処理
	UseKind    int       // 利用金額種別
	Use        int       // 利用金額(支払いはマイナス)
	Balance    int       // 残額

	Raw []byte // Rawデータ
}

nice-pass利用履歴データ

func (*NicepassValue) InStationName

func (value *NicepassValue) InStationName() interface{}

乗車駅

func (*NicepassValue) OutStationName

func (value *NicepassValue) OutStationName() interface{}

降車駅

func (*NicepassValue) ProcName

func (value *NicepassValue) ProcName() interface{}

処理

func (*NicepassValue) TypeName

func (value *NicepassValue) TypeName() interface{}

端末種

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL