""" Options: Date: 2026-04-04 02:56:01 Version: 8.52 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: LogDeviceStatus.* #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 # @Api(Description="Logs details of an event(crash,error,unexpected result) and the device status at the time of the event.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class LogDeviceStatus(IReturn[ResponseStatus]): """ Logs details of an event(crash,error,unexpected result) and the device status at the time of the event. """ # @ApiMember(DataType="Guid", Description="Guid of the Appliance this Device is logging an event status for.", IsRequired=true, Name="ApplianceId", ParameterType="query") appliance_id: Optional[str] = None """ Guid of the Appliance this Device is logging an event status for. """ # @ApiMember(DataType="Guid", Description="Guid representing the saved Device", IsRequired=true, Name="DeviceId", ParameterType="query") device_id: Optional[str] = None """ Guid representing the saved Device """ # @ApiMember(DataType="double", Description="The latitude the device was last located at.", IsRequired=true, Name="Latitude", ParameterType="query") latitude: float = 0.0 """ The latitude the device was last located at. """ # @ApiMember(DataType="double", Description="The longitude the device was last located at.", IsRequired=true, Name="Longitude", ParameterType="query") longitude: float = 0.0 """ The longitude the device was last located at. """ # @ApiMember(DataType="string", Description="Name of the event we're logging.", Name="EventName", ParameterType="query") event_name: Optional[str] = None """ Name of the event we're logging. """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="EventDetail1", ParameterType="query") event_detail1: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="EventDetail2", ParameterType="query") event_detail2: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="EventDetail3", ParameterType="query") event_detail3: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="EventDetail4", ParameterType="query") event_detail4: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="EventDetail5", ParameterType="query") event_detail5: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="Details of the event up to (255 char).", Name="Orientation", ParameterType="query") orientation: Optional[str] = None """ Details of the event up to (255 char). """ # @ApiMember(DataType="string", Description="The device internet connection status.", Name="InternetConnectionStatus", ParameterType="query") internet_connection_status: Optional[str] = None """ The device internet connection status. """ # @ApiMember(DataType="string", Description="Unlimited text field for logging details of the event.", Name="Log", ParameterType="query") log: Optional[str] = None """ Unlimited text field for logging details of the event. """ # @ApiMember(DataType="DateTime", Description="Date and Time of the event.", Name="Event", ParameterType="query") event: datetime.datetime = datetime.datetime(1, 1, 1) """ Date and Time of the event. """ # @ApiMember(DataType="bool", Description="True if the device is in portrait mode.", Name="IsInPortrait", ParameterType="query") is_in_portrait: bool = False """ True if the device is in portrait mode. """ # @ApiMember(DataType="bool", Description="True if the device is in landscape mode.", Name="IsInLandscape", ParameterType="query") is_in_landscape: bool = False """ True if the device is in landscape mode. """ # @ApiMember(DataType="bool", Description="True if cellular data is enabled.", Name="CellularDataEnabled", ParameterType="query") cellular_data_enabled: bool = False """ True if cellular data is enabled. """ # @ApiMember(DataType="bool", Description="True if data roaming is enabled.", Name="DataRoamingEnabled", ParameterType="query") data_roaming_enabled: bool = False """ True if data roaming is enabled. """ # @ApiMember(DataType="bool", Description="True if the network is available.", Name="IsNetworkAvailable", ParameterType="query") is_network_available: bool = False """ True if the network is available. """ # @ApiMember(DataType="bool", Description="True if the device can send an sms.", Name="CanSendSMS", ParameterType="query") can_send_s_m_s: bool = False """ True if the device can send an sms. """ # @ApiMember(DataType="bool", Description="True if the battery is charging.", Name="BatteryCharging", ParameterType="query") battery_charging: bool = False """ True if the battery is charging. """ # @ApiMember(DataType="int", Description="The amount of battery life left as a percentage.", Name="BatteryLevel", ParameterType="query") battery_level: int = 0 """ The amount of battery life left as a percentage. """ # @ApiMember(DataType="Guid", Description="The Guid of a saved Media Object.", Name="MediaFileId1", ParameterType="query") media_file_id1: Optional[str] = None """ The Guid of a saved Media Object. """ # @ApiMember(DataType="Guid", Description="The Guid of a saved Media Object.", Name="MediaFileId2", ParameterType="query") media_file_id2: Optional[str] = None """ The Guid of a saved Media Object. """