arlo-go/responses.go

45 lines
999 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
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
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
Error
2017-12-09 03:55:38 +00:00
}
type LibraryResponse struct {
2017-12-10 19:17:09 +00:00
Data Library
Error
2017-12-10 19:17:09 +00:00
}
type StreamResponse struct {
Data StreamUrl
Error
}
type RecordingResponse struct {
2017-12-10 19:17:09 +00:00
Data StreamUrl
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
}