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
Knut Ahlers 8ab2291202
Add new blocks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-12-11 18:51:35 +01:00

22 lines
481 B
Go

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 }