From f9c2802135cf62192881b4570ed882f8c258f095 Mon Sep 17 00:00:00 2001 From: David Neuroth Date: Thu, 31 Oct 2024 17:11:56 +0100 Subject: [PATCH] added python bindings for class JsonEnumProfile --- pylpg/lpgpythonbindings.py | 53 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/pylpg/lpgpythonbindings.py b/pylpg/lpgpythonbindings.py index 2c0e8c4..5f8bd92 100644 --- a/pylpg/lpgpythonbindings.py +++ b/pylpg/lpgpythonbindings.py @@ -988,6 +988,59 @@ def set_HouseKey(self, value: HouseholdKeyEntry) -> JsonSumProfile: return self +# noinspection PyPep8Naming, PyUnusedLocal +@dataclass_json +@dataclass +class JsonEnumProfile: + Name: Optional[str] = "" + + def set_Name(self, value: str) -> JsonEnumProfile: + self.Name = value + return self + + TimeResolution: str = "00:01:00" + + def set_TimeResolution(self, value: str) -> JsonEnumProfile: + self.TimeResolution = value + return self + + Values: List[str] = field(default_factory=list) + + def set_Values(self, value: List[str]) -> JsonEnumProfile: + self.Values = value + return self + + StartTime: Optional[str] = "" + + def set_StartTime(self, value: str) -> JsonEnumProfile: + self.StartTime = value + return self + + LoadTypeName: Optional[str] = "" + + def set_LoadTypeName(self, value: str) -> JsonEnumProfile: + self.LoadTypeName = value + return self + + LoadTypeDefinition: Optional[LoadTypeInformation] = None + + def set_LoadTypeDefinition(self, value: LoadTypeInformation) -> JsonEnumProfile: + self.LoadTypeDefinition = value + return self + + Unit: Optional[str] = "" + + def set_Unit(self, value: str) -> JsonEnumProfile: + self.Unit = value + return self + + HouseKey: Optional[HouseholdKeyEntry] = None + + def set_HouseKey(self, value: HouseholdKeyEntry) -> JsonEnumProfile: + self.HouseKey = value + return self + + # noinspection PyPep8Naming, PyUnusedLocal @dataclass_json @dataclass