Package lacewing :: Package packetloaders :: Module channelmessage :: Class ToChannelMessage
[frames] | no frames]

Class ToChannelMessage

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
 common._DataTypeMixin --+
                         |
                        ToChannelMessage

This is sent by the client if it wants to send a message to everyone in a specific channel (that it is a part of).

Instance Methods
 
read(self, data)
Parses 'data' and sets the properties of the packetloader.
source code
 
generate(self)
Generate the raw representation of the packetloader.
source code

Inherited from baseloader._BaseLoader: __init__, initialize, new

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Inherited from common._DataTypeMixin: generateMessage, getDataType, readMessage, setDataType

Class Variables
  packetId = 12
Instance Variables
  channelId = None
The recipient channel ID.
  subchannel = None
The subchannel of the message.
str or number value = None
The message contents.
Properties

Inherited from object: __class__

Method Details

read(self, data)

source code 

Parses 'data' and sets the properties of the packetloader.

Overrides: baseloader._BaseLoader.read
(inherited documentation)

generate(self)

source code 

Generate the raw representation of the packetloader.

Overrides: baseloader._BaseLoader.generate
(inherited documentation)