Commit 9b1d8946 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

add new ml40 values

parent e81ad455
Pipeline #458438 passed with stages
in 51 seconds
...@@ -63,10 +63,12 @@ ...@@ -63,10 +63,12 @@
from ml.ml40.features.properties.property import Property from ml.ml40.features.properties.property import Property
from ml.ml40.features.properties.associations.shared import Shared from ml.ml40.features.properties.associations.shared import Shared
from ml.ml40.features.properties.values.address import Address from ml.ml40.features.properties.values.address import Address
from ml.ml40.features.properties.values.count import Count
from ml.ml40.features.properties.values.dimensions import Dimensions from ml.ml40.features.properties.values.dimensions import Dimensions
from ml.ml40.features.properties.values.expansion_length import ExpansionLength from ml.ml40.features.properties.values.expansion_length import ExpansionLength
from ml.ml40.features.properties.values.generic_property import GenericProperty from ml.ml40.features.properties.values.generic_property import GenericProperty
from ml.ml40.features.properties.values.last_service_check import LastServiceCheck from ml.ml40.features.properties.values.last_service_check import LastServiceCheck
from ml.ml40.features.properties.values.lot import Lot
from ml.ml40.features.properties.values.lift import Lift from ml.ml40.features.properties.values.lift import Lift
from ml.ml40.features.properties.values.liquid_filling_level import LiquidFillingLevel from ml.ml40.features.properties.values.liquid_filling_level import LiquidFillingLevel
from ml.ml40.features.properties.values.location import Location from ml.ml40.features.properties.values.location import Location
......
from ml.ml40.features.properties.values.value import Value
class Count(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
self.currentCount = None
self.maxCount = None
self.minCount = None
self.__json_out = dict()
def to_json(self):
self.__json_out = super().to_json()
if self.currentCount is not None:
self.__json_out["currentCount"] = self.currentCount
if self.maxCount is not None:
self.__json_out["maxCount"] = self.maxCount
if self.minCount is not None:
self.__json_out["minCount"] = self.minCount
return self.__json_out
from ml.ml40.features.properties.values.value import Value
class Lot(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment