2018-09-19 07:07:32 +00:00
|
|
|
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
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
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
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
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
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
2017-12-09 03:55:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type LibraryResponse struct {
|
2017-12-10 19:17:09 +00:00
|
|
|
Data Library
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
2017-12-10 19:17:09 +00:00
|
|
|
}
|
|
|
|
|
2018-09-17 04:44:41 +00:00
|
|
|
type StreamResponse struct {
|
|
|
|
Data StreamUrl
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
2018-09-17 04:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type RecordingResponse struct {
|
2017-12-10 19:17:09 +00:00
|
|
|
Data StreamUrl
|
2018-09-19 19:12:06 +00:00
|
|
|
Error
|
|
|
|
}
|
|
|
|
|
|
|
|
type EventStreamResponse struct {
|
|
|
|
Action string `json:"action,omitempty"`
|
|
|
|
Resource string `json:"resource,omitempty"`
|
|
|
|
Properties interface{} `json:"properties,omitempty"`
|
|
|
|
TransId string `json:"transId"`
|
|
|
|
From string `json:"from"`
|
|
|
|
To string `json:"to"`
|
|
|
|
Status string `json:"status"`
|
2017-12-09 03:55:38 +00:00
|
|
|
}
|