arlo-go/responses.go

40 lines
755 B
Go
Raw Normal View History

package arlo
2017-12-09 03:55:38 +00:00
// LoginResponse is an intermediate struct used when parsing data from the Login() call.
type LoginResponse struct {
2017-12-10 19:17:09 +00:00
Data Account
Status
2017-12-09 03:55:38 +00:00
}
// DeviceResponse is an intermediate struct used when parsing data from the GetDevices() call.
type DeviceResponse struct {
2017-12-10 19:17:09 +00:00
Data Devices
Status
2017-12-09 03:55:38 +00:00
}
// LibraryMetaDataResponse is an intermediate struct used when parsing data from the GetLibraryMetaData() call.
type LibraryMetaDataResponse struct {
2017-12-10 19:17:09 +00:00
Data LibraryMetaData
Status
2017-12-09 03:55:38 +00:00
}
type LibraryResponse struct {
2017-12-10 19:17:09 +00:00
Data Library
Status
2017-12-10 19:17:09 +00:00
}
type StreamResponse struct {
Data StreamUrl
Status
}
type RecordingResponse struct {
2017-12-10 19:17:09 +00:00
Data StreamUrl
Status
}
type EventStreamResponse struct {
EventStreamPayload
Status string `json:"status,omitempty"`
2017-12-09 03:55:38 +00:00
}