""" Options: Date: 2024-11-28 09:40:15 Version: 6.40 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SetDocumentComment.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum class IComment: text: Optional[str] = None date: datetime.datetime = datetime.datetime(1, 1, 1) username: Optional[str] = None is_mine: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DocumentComment(IComment): id: int = 0 document_i_d: Optional[str] = None user_i_d: int = 0 username: Optional[str] = None text: Optional[str] = None date: datetime.datetime = datetime.datetime(1, 1, 1) is_mine: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SetDocumentComment(IReturn[DocumentComment]): id: Optional[str] = None comment: Optional[str] = None