verion which did not include the handling in RTService wth creating the

Json file
This commit is contained in:
2024-06-25 20:50:29 +02:00
parent 2650679989
commit 5285f8b26e
215 changed files with 26816 additions and 219 deletions

View File

@@ -5,21 +5,20 @@ from marshmallow import Schema, fields, post_load
class VRPMDVMonitoringState():
OFF = "off"
CREATED = "created"
STARTED = "started"
STOPPED = "stopped"
STARTED = 'started'
STOPPED = 'stopped'
def __init__(self, state = OFF):
NCREATE = 0
NDELETE = 1
def __init__(self, state = STOPPED):
self.state = state
class VRPMDVMonitoringStateSchema(Schema):
monstate = fields.String()
@post_load
def make_vrpmdv_MonitoringState(self, data, **kwargs):
return VRPMDVMonitoringState(**data)
def get(self) :
if (self.state == self.STARTED) :
return self.NCREATE
else :
return self.NDELETE