1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00
sii/block_profit_log.go

23 lines
481 B
Go
Raw 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 }