mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
Add JobOfferData block
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
15b5c77be7
commit
40b6d77f01
1 changed files with 31 additions and 0 deletions
31
block_job_offer_data.go
Normal file
31
block_job_offer_data.go
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
package sii
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
RegisterBlock(&JobOfferData{})
|
||||||
|
}
|
||||||
|
|
||||||
|
type JobOfferData struct {
|
||||||
|
Target string `sii:"target"` // Looks like a partial pointer?
|
||||||
|
ExpirationTime int64 `sii:"expiration_time"`
|
||||||
|
Urgency int64 `sii:"urgency"` // TODO: May be literal "nil"
|
||||||
|
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 int64 `sii:"fill_ratio"` // TODO: Might be float? Haven't seen anything other than "1"
|
||||||
|
TrailerPlace int64 `sii:"trailer_place"` // TODO: What's this? Seems to be "0" in all jobs
|
||||||
|
|
||||||
|
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 }
|
Loading…
Reference in a new issue