This commit is contained in:
seydx
2025-05-17 16:37:12 +02:00
parent edfa09bb9f
commit adb1b21e81
2 changed files with 29 additions and 29 deletions
+10 -10
View File
@@ -59,10 +59,10 @@ type SocketTicketResponse struct {
// SessionResponse repesents the response from the session endpoint
type SessionResponse struct {
Profile struct {
ID int64 `json:"id"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
ID int64 `json:"id"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
} `json:"profile"`
}
@@ -84,7 +84,7 @@ type RingRestClient struct {
sessionMutex sync.Mutex
// Cache-Schlüssel für diese Instanz
cacheKey string
cacheKey string
}
// CameraKind represents the different types of Ring cameras
@@ -92,11 +92,11 @@ type CameraKind string
// CameraData contains common fields for all camera types
type CameraData struct {
ID int `json:"id"`
Description string `json:"description"`
DeviceID string `json:"device_id"`
Kind string `json:"kind"`
LocationID string `json:"location_id"`
ID int `json:"id"`
Description string `json:"description"`
DeviceID string `json:"device_id"`
Kind string `json:"kind"`
LocationID string `json:"location_id"`
}
// RingDeviceType represents different types of Ring devices
+2 -2
View File
@@ -10,7 +10,7 @@ import (
type SnapshotProducer struct {
core.Connection
client *RingRestClient
client *RingRestClient
cameraID string
}
@@ -35,7 +35,7 @@ func NewSnapshotProducer(client *RingRestClient, cameraID string) *SnapshotProdu
},
},
},
client: client,
client: client,
cameraID: cameraID,
}
}