From 310fd1ee758ed8730b7838d5fad88ddf1f43b897 Mon Sep 17 00:00:00 2001 From: Graham Gilbert Date: Wed, 2 Oct 2019 17:04:32 +0200 Subject: [PATCH] Add DEPProfileStatus to API response (#617) Exposes the dep_profile_status field in the devices response. --- platform/device/get_devices.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/device/get_devices.go b/platform/device/get_devices.go index f041a085..bb52b39e 100644 --- a/platform/device/get_devices.go +++ b/platform/device/get_devices.go @@ -19,10 +19,11 @@ type ListDevicesOption struct { } type DeviceDTO struct { - SerialNumber string `json:"serial_number"` - UDID string `json:"udid"` - EnrollmentStatus bool `json:"enrollment_status"` - LastSeen time.Time `json:"last_seen"` + SerialNumber string `json:"serial_number"` + UDID string `json:"udid"` + EnrollmentStatus bool `json:"enrollment_status"` + LastSeen time.Time `json:"last_seen"` + DEPProfileStatus DEPProfileStatus `json:"dep_profile_status"` } func (svc *DeviceService) ListDevices(ctx context.Context, opt ListDevicesOption) ([]DeviceDTO, error) { @@ -34,6 +35,7 @@ func (svc *DeviceService) ListDevices(ctx context.Context, opt ListDevicesOption UDID: d.UDID, EnrollmentStatus: d.Enrolled, LastSeen: d.LastSeen, + DEPProfileStatus: d.DEPProfileStatus, }) } return dto, err