2019-11-10 14:12:26 +00:00
|
|
|
package sii
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
RegisterBlock(&JobOfferData{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type JobOfferData struct {
|
2019-12-10 22:20:25 +00:00
|
|
|
Target string `sii:"target"`
|
|
|
|
ExpirationTime *int64 `sii:"expiration_time"`
|
|
|
|
Urgency *int64 `sii:"urgency"`
|
|
|
|
ShortestDistanceKM int64 `sii:"shortest_distance_km"`
|
|
|
|
FerryTime int64 `sii:"ferry_time"`
|
|
|
|
FerryPrice int64 `sii:"ferry_price"`
|
|
|
|
Cargo Ptr `sii:"cargo"` // External pointer
|
|
|
|
CompanyTruck Ptr `sii:"company_truck"` // Partial external pointer?
|
|
|
|
TrailerVariant Ptr `sii:"trailer_variant"` // External pointer
|
|
|
|
TrailerDefinition Ptr `sii:"trailer_definition"` // External pointer
|
|
|
|
UnitsCount int64 `sii:"units_count"`
|
|
|
|
FillRatio float32 `sii:"fill_ratio"`
|
|
|
|
TrailerPlace []Placement `sii:"trailer_place"`
|
2019-11-10 14:12:26 +00:00
|
|
|
|
|
|
|
blockName string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (JobOfferData) Class() string { return "job_offer_data" }
|
|
|
|
|
|
|
|
func (j *JobOfferData) Init(class, name string) {
|
|
|
|
j.blockName = name
|
|
|
|
}
|
|
|
|
|
|
|
|
func (j JobOfferData) Name() string { return j.blockName }
|