MediaImageLabel.py 235 B

123456789
  1. from pycs.database.Result import Result
  2. class MediaImageLabel:
  3. def __init__(self, result: Result):
  4. self.label = result.label
  5. def serialize(self) -> dict:
  6. return dict({'type': 'image-label'}, **self.__dict__)