Package papyon :: Package event :: Module conversation :: Class ConversationEventInterface

Class ConversationEventInterface

source code

        object --+    
                 |    
BaseEventInterface --+
                     |
                    ConversationEventInterface

Interfaces allowing the user to get notified about events from a Conversation object.

Instance Methods
 
__init__(self, conversation)
Initializer
source code
 
on_conversation_state_changed(self, state) source code
 
on_conversation_error(self, type, error)
Called when an error occurs in the Client.
source code
 
on_conversation_user_joined(self, contact)
Called when an user joins the conversation.
source code
 
on_conversation_user_left(self, contact)
Called when an user leaved the conversation.
source code
 
on_conversation_user_typing(self, contact)
Called when an user is typing.
source code
 
on_conversation_message_received(self, sender, message)
Called when an user sends a message.
source code
 
on_conversation_nudge_received(self, sender)
Called when an user sends a nudge.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, conversation)
(Constructor)

source code 

Initializer

Parameters:
  • conversation (Conversation) - the conversation we want to be notified for its events
Overrides: object.__init__

on_conversation_state_changed(self, state)

source code 

Attention: not implemented

on_conversation_error(self, type, error)

source code 

Called when an error occurs in the Client.

Parameters:

on_conversation_user_joined(self, contact)

source code 

Called when an user joins the conversation.

Parameters:
  • contact (Contact) - the contact whose presence changed

on_conversation_user_left(self, contact)

source code 

Called when an user leaved the conversation.

Parameters:
  • contact (Contact) - the contact whose presence changed

on_conversation_user_typing(self, contact)

source code 

Called when an user is typing.

Parameters:
  • contact (Contact) - the contact whose presence changed

on_conversation_message_received(self, sender, message)

source code 

Called when an user sends a message.

Parameters:

on_conversation_nudge_received(self, sender)

source code 

Called when an user sends a nudge.

Parameters:
  • sender (Contact) - the contact who sent the nudge