Skip to content

Commit

Permalink
surface setter
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Proskurin committed Oct 30, 2023
1 parent a08f9fe commit 7a3ced9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/message/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ def platform_type(self) -> str:
def platform_version(self) -> str:
return self._value.get("platformVersion") or ""

@cached_property
@property
def surface(self) -> str:
return self._value.get("surface") or ""

@surface.setter
def surface(self, value):
self._value["surface"] = value

@cached_property
def surface_version(self) -> str:
return self._value.get("surfaceVersion") or ""
Expand Down

0 comments on commit 7a3ced9

Please sign in to comment.