Skip to content

Commit

Permalink
Add missing field for details responses
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Nov 3, 2022
1 parent b4726a4 commit 0f4dc72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion godep/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ type Device struct {
DeviceAssignedBy string `json:"device_assigned_by,omitempty"`
OS string `json:"os,omitempty"`
DeviceFamily string `json:"device_family,omitempty"`
// fetch/sync-only fields

// OpType and OpDate are only populated from the sync endpoint
OpType string `json:"op_type,omitempty"`
OpDate time.Time `json:"op_date,omitempty"`

// ResponseStatus is only populated from the details endpoint
ResponseStatus string `json:"response_status,omitempty"`
}

// deviceRequest corresponds to the Apple DEP API "FetchDeviceRequest" and
Expand Down

0 comments on commit 0f4dc72

Please sign in to comment.