Descriptors
Module contents
This package contains custom Python descriptors used to control attribute access and behavior within models or services.
- class back_chat.descriptors.MessageMode(name=None)[source]
Bases:
object
Descriptor class that manages attribute access for message mode fields.
This descriptor validates that the assigned value is a valid member of the MessageType enum, storing its string value internally.
- Usage:
When used as a class attribute, it enforces that only MessageType enum values can be assigned to that attribute.
- class back_chat.descriptors.MessageType(*values)[source]
Bases:
Enum
Enumeration of possible message types used in the application. Each member represents a distinct category or kind of message.
- ALARM: str = 'alarm'
- CONFIGURATION: str = 'configuration'
- CONNECT: str = 'connect'
- CONNECTION: str = 'connection'
- DISCONNECT: str = 'disconnect'
- MESSAGE: str = 'message'
- NOTICE: str = 'notice'
- WARNING: str = 'warning'
Submodules
Message module
- class back_chat.descriptors.message.MessageMode(name=None)[source]
Bases:
object
Descriptor class that manages attribute access for message mode fields.
This descriptor validates that the assigned value is a valid member of the MessageType enum, storing its string value internally.
- Usage:
When used as a class attribute, it enforces that only MessageType enum values can be assigned to that attribute.
- class back_chat.descriptors.message.MessageType(*values)[source]
Bases:
Enum
Enumeration of possible message types used in the application. Each member represents a distinct category or kind of message.
- ALARM: str = 'alarm'
- CONFIGURATION: str = 'configuration'
- CONNECT: str = 'connect'
- CONNECTION: str = 'connection'
- DISCONNECT: str = 'disconnect'
- MESSAGE: str = 'message'
- NOTICE: str = 'notice'
- WARNING: str = 'warning'