format
This commit is contained in:
+10
-10
@@ -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
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user