Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingDevice ¶
type RingDevice struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description string `json:"description"` // Used when name is not present (e.g., for other devices)
Kind string `json:"kind"` // Device kind (e.g., "intercom_handset_audio")
Family string `json:"family"`
Owned *bool `json:"owned,omitempty"`
Address string `json:"address"`
Timezone string `json:"timezone"`
TimeZone string `json:"time_zone"` // Alternative field name used by some devices
WifiName string `json:"wifi_name"`
WifiSignalStrength int `json:"wifi_signal_strength"`
Volume int `json:"volume"`
HasLight bool `json:"has_light"`
LightBrightness *int `json:"light_brightness,omitempty"`
MotionDetectionEnabled bool `json:"motion_detection_enabled"`
Health map[string]interface{} `json:"health,omitempty"`
}
RingDevice represents a device in the Ring API response
type RingDevicesResponse ¶
type RingDevicesResponse struct {
Doorbots []RingDevice `json:"doorbots"`
AuthorizedDoorbots []RingDevice `json:"authorized_doorbots"`
Chimes []RingDevice `json:"chimes"`
StickupCams []RingDevice `json:"stickup_cams"`
Other []RingDevice `json:"other"`
}
RingDevicesResponse represents the raw response from the Ring API
type RingDoorbot ¶
type RingDoorbot struct {
ID int64 `json:"id"`
Description string `json:"description"`
Type string `json:"type"`
}
RingDoorbot represents the doorbot/device information in a recording
type RingRecording ¶
type RingRecording struct {
ID int64 `json:"id"`
Kind string `json:"kind"`
Answered bool `json:"answered"`
CreatedAt string `json:"created_at"`
DeviceID int64 `json:"-"` // Populated from doorbot.id during conversion
Doorbot RingDoorbot `json:"doorbot"`
}
RingRecording represents a recording in the Ring API response
type RingRecordingHistoryResponse ¶
type RingRecordingHistoryResponse struct {
Recordings []RingRecording `json:"-"`
}
RingRecordingHistoryResponse represents the raw response from the Ring API The API returns an array directly, not wrapped in an object
type RingRecordingURLResponse ¶
type RingRecordingURLResponse struct {
URL string `json:"url"`
}
RingRecordingURLResponse represents the response containing a signed recording URL
Click to show internal directories.
Click to hide internal directories.