1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00
sii/block_profit_log.go

23 lines
481 B
Go
Raw Permalink Normal View History

package sii
func init() {
RegisterBlock(&ProfitLog{})
}
type ProfitLog struct {
StatsData []Ptr `sii:"stats_data"`
AccDistanceFree int64 `sii:"acc_distance_free"`
AccDistanceOnJob int64 `sii:"acc_distance_on_job"`
HistoryAge *int64 `sii:"history_age"`
blockName string
}
func (ProfitLog) Class() string { return "profit_log" }
func (p *ProfitLog) Init(class, name string) {
p.blockName = name
}
func (p ProfitLog) Name() string { return p.blockName }