1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-30 04:11:15 +00:00
sii/block_trailer_utilization_log.go

23 lines
631 B
Go
Raw Permalink Normal View History

package sii
func init() {
RegisterBlock(&TrailerUtilizationLog{})
}
type TrailerUtilizationLog struct {
Entries []Ptr `sii:"entries"` // Needs verification
TotalDrivenDistanceKM int64 `sii:"total_driven_distance_km"`
TotalTransportedCargoes int64 `sii:"total_transported_cargoes"`
TotalTransportedWeight float32 `sii:"total_transported_weight"`
blockName string
}
func (TrailerUtilizationLog) Class() string { return "trailer_utilization_log" }
func (t *TrailerUtilizationLog) Init(class, name string) {
t.blockName = name
}
func (t TrailerUtilizationLog) Name() string { return t.blockName }