Skip to content

Commit

Permalink
Add notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Apr 7, 2024
1 parent 108f4b0 commit d74d683
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions smartcitizen_connector/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ class Postprocessing(BaseModel):
class Data(BaseModel):
sensors: Optional[List[Sensor]] = None

class Notifications(BaseModel):
low_battery: bool
stopped_publishing: bool

class Device(BaseModel):
id: int
uuid: str
Expand All @@ -102,8 +106,7 @@ class Device(BaseModel):
system_tags: List[str]
user_tags: List[str]
is_private: bool
notify_low_battery: bool
notify_stopped_publishing: bool
notify: Notifications
last_reading_at: Optional[datetime] = None
created_at: Optional[datetime] = None
updated_at: datetime
Expand Down

0 comments on commit d74d683

Please sign in to comment.