From a7b2c056ac3ff4aea96fde57303e2422621e376c Mon Sep 17 00:00:00 2001 From: nad Date: Sun, 10 Mar 2019 20:44:10 +0100 Subject: [PATCH] Adding more mobile characteristics [Ratev2] --- ereuse_devicehub/resources/device/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 4bbbdc59..521d1cc3 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -452,6 +452,14 @@ class Mobile(Device): The Mobile Equipment Identifier as a hexadecimal string. """ + # TODO Add more characteristics, like display resolution, battery health, graphic card, ... + display_size = Column(Float(decimal_return_scale=2)) + display_size.comment = 'Display size; Units: inches;' + battery_size = Column(Float(decimal_return_scale=2)) + battery_size.comment = 'Battery size; Units: mAh' + camera_resolution = Column(Float(decimal_return_scale=2)) + camera_resolution.comment = 'Camera resolution; Units: Megapixels' + @validates('imei') def validate_imei(self, _, value: int): if not imei.is_valid(str(value)):