Models

Transceiver-based Models.

This is a temporary implementation. A shim-layer.

class transceiver.models.Server[source]

Bases: object

Stand-In for a future model.

id = None
name = None
parse = 1
respond = 1
mapping() dict[str, any][source]

Future proofing this class.

Returns:

A template respresentation.

Return type:

dict[str, any]

class transceiver.models.Channel[source]

Bases: object

Stand-In for a future model.

id = None
name = None
server_id = None
parse = 1
respond = 0
mapping() dict[str, any][source]

Future proofing this class.

Returns:

A template respresentation.

Return type:

dict[str, any]

class transceiver.models.User[source]

Bases: object

Stand-In for a future model.

id = None
name = None
parse = 1
respond = 1
mapping() dict[str, any][source]

Future proofing this class.

Returns:

A template respresentation.

Return type:

dict[str, any]

class transceiver.models.Message[source]

Bases: object

Stand-In for a future model.

JSON_TEMPLATE = {'content': None, 'id': None, 'objects': {'attachments': [], 'links': []}, 'origin': {'server': {'channel': {'id': None, 'name': None}, 'id': None, 'name': None}}, 'read': None, 'response': None, 'time': None, 'user': {'avatar': None, 'bot': 0, 'id': None, 'name': None, 'nick': None}}
mapping() dict[str, any][source]

Future proofing this class.

Returns:

A template respresentation.

Return type:

dict[str, any]

class transceiver.models.Attachment[source]

Bases: object

Stand-In for a future model.

id = None
url = None
filename = None
mapping() dict[str, any][source]

Future proofing this class.

Returns:

A template respresentation.

Return type:

dict[str, any]