class documentation

class ChatAvatar(pb.Referenceable): (source)

Implements interfaces: twisted.words.iwords.IChatClient

View In Hierarchy

Undocumented

Method __init__ Undocumented
Instance Variable avatar Undocumented
Method jellyFor (internal)
Method remote_join Undocumented
Property name A short string, unique among users. This will be set by the IChatService at login time.
Method name.setter Undocumented
Method groupMetaUpdate Callback notifying this user that the metadata for the given group has changed.
Method receive Callback notifying this user of the given message sent by the given user.
Method userJoined Callback notifying this user that the given user has joined the given group.
Method userLeft Callback notifying this user that the given user has left the given group for the given reason.

Inherited from Referenceable:

Class Variable perspective I am an object sent remotely as a direct reference.
Method remoteMessageReceived A remote message has been received. Dispatch it appropriately.

Inherited from Serializable (via Referenceable):

Method processUniqueID Return an ID which uniquely represents this object for this process.

Inherited from Jellyable (via Referenceable, Serializable):

Method getStateFor Undocumented
def __init__(self, avatar): (source)

Undocumented

avatar = (source)

Undocumented

def jellyFor(self, jellier): (source)

(internal)

Return a tuple which will be used as the s-expression to serialize this to a peer.

def remote_join(self, groupName): (source)

Undocumented

@property
name = (source)

A short string, unique among users. This will be set by the IChatService at login time.

@name.setter
def name(self, value): (source)

Undocumented

def groupMetaUpdate(self, group, meta): (source)

Callback notifying this user that the metadata for the given group has changed.

ParametersgroupUndocumented (type: IGroup)
metaUndocumented (type: dict)
ReturnsUndocumented (type: twisted.internet.defer.Deferred)
def receive(self, sender, recipient, message): (source)

Callback notifying this user of the given message sent by the given user.

This will be invoked whenever another user sends a message to a group this user is participating in, or whenever another user sends a message directly to this user. In the former case, recipient will be the group to which the message was sent; in the latter, it will be the same object as the user who is receiving the message.

ParameterssenderUndocumented (type: IUser)
recipientUndocumented (type: IUser or IGroup)
messageUndocumented (type: dict)
ReturnsA Deferred which fires when the message has been delivered, or which fails in some way. If the Deferred fails and the message was directed at a group, this user will be removed from that group. (type: twisted.internet.defer.Deferred)
def userJoined(self, group, user): (source)

Callback notifying this user that the given user has joined the given group.

ParametersgroupUndocumented (type: IGroup)
userUndocumented (type: IUser)
ReturnsUndocumented (type: twisted.internet.defer.Deferred)
def userLeft(self, group, user, reason=None): (source)

Callback notifying this user that the given user has left the given group for the given reason.

ParametersgroupUndocumented (type: IGroup)
userUndocumented (type: IUser)
reasonUndocumented (type: unicode)
ReturnsUndocumented (type: twisted.internet.defer.Deferred)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.