This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/apis/trips/tripsgo/trip.go

44 lines
818 B
Go
Raw Permalink Normal View History

2022-11-03 20:41:13 +00:00
package tripsgo
import (
"time"
)
// Trip - Represents a single trip by a user with its associated set of trip points.
type Trip struct {
// Trip ID
ID string `json:"Id"`
Name string `json:"Name"`
// User's unique identity
UserID string `json:"UserId"`
RecordedTimeStamp string `json:"RecordedTimeStamp"`
EndTimeStamp string `json:"EndTimeStamp"`
Rating int32 `json:"Rating"`
IsComplete bool `json:"IsComplete"`
HasSimulatedOBDData bool `json:"HasSimulatedOBDData"`
AverageSpeed float32 `json:"AverageSpeed"`
FuelUsed float32 `json:"FuelUsed"`
HardStops int64 `json:"HardStops"`
HardAccelerations int64 `json:"HardAccelerations"`
Distance float32 `json:"Distance"`
Created time.Time `json:"Created"`
UpdatedAt time.Time `json:"UpdatedAt"`
Deleted bool `json:"Deleted,omitempty"`
}