format
This commit is contained in:
+10
-10
@@ -59,10 +59,10 @@ type SocketTicketResponse struct {
|
|||||||
// SessionResponse repesents the response from the session endpoint
|
// SessionResponse repesents the response from the session endpoint
|
||||||
type SessionResponse struct {
|
type SessionResponse struct {
|
||||||
Profile struct {
|
Profile struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
FirstName string `json:"first_name"`
|
FirstName string `json:"first_name"`
|
||||||
LastName string `json:"last_name"`
|
LastName string `json:"last_name"`
|
||||||
} `json:"profile"`
|
} `json:"profile"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ type RingRestClient struct {
|
|||||||
sessionMutex sync.Mutex
|
sessionMutex sync.Mutex
|
||||||
|
|
||||||
// Cache-Schlüssel für diese Instanz
|
// Cache-Schlüssel für diese Instanz
|
||||||
cacheKey string
|
cacheKey string
|
||||||
}
|
}
|
||||||
|
|
||||||
// CameraKind represents the different types of Ring cameras
|
// CameraKind represents the different types of Ring cameras
|
||||||
@@ -92,11 +92,11 @@ type CameraKind string
|
|||||||
|
|
||||||
// CameraData contains common fields for all camera types
|
// CameraData contains common fields for all camera types
|
||||||
type CameraData struct {
|
type CameraData struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
DeviceID string `json:"device_id"`
|
DeviceID string `json:"device_id"`
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind"`
|
||||||
LocationID string `json:"location_id"`
|
LocationID string `json:"location_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RingDeviceType represents different types of Ring devices
|
// RingDeviceType represents different types of Ring devices
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
type SnapshotProducer struct {
|
type SnapshotProducer struct {
|
||||||
core.Connection
|
core.Connection
|
||||||
|
|
||||||
client *RingRestClient
|
client *RingRestClient
|
||||||
cameraID string
|
cameraID string
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ func NewSnapshotProducer(client *RingRestClient, cameraID string) *SnapshotProdu
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
client: client,
|
client: client,
|
||||||
cameraID: cameraID,
|
cameraID: cameraID,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user