Package papyon :: Module conversation :: Class ConversationMessage

Class ConversationMessage

source code

object --+
         |
        ConversationMessage

A Conversation message sent or received

Instance Methods
 
__init__(self, content, formatting=None, msn_objects={})
Initializer
source code

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

Instance Variables
utf-8 encoded string content
the content of the message
utf-8 encoded string display_name
the display name to show for the sender of this message
TextFormat formatting
the formatting for this message
{smiley: string => MSNObject} msn_objects
a dictionary mapping smileys to an MSNObject
Properties

Inherited from object: __class__

Method Details

__init__(self, content, formatting=None, msn_objects={})
(Constructor)

source code 

Initializer

Parameters:
  • content (utf-8 encoded string) - the content of the message
  • formatting (TextFormat) - the formatting for this message
  • msn_objects ({smiley: string => MSNObject}) - a dictionary mapping smileys to an MSNObject
Overrides: object.__init__