Esempio n. 1
0
 def _send_message(self, message, callback=None, errback=None):
     content_type = message.content_type[0]
     ack = msnp.MessageAcknowledgement.HALF
     if content_type in ("text/x-msnmsgr-datacast", "text/x-msmsgscontrol"):
         ack = msnp.MessageAcknowledgement.NONE
     SwitchboardHandler._send_message(self, message, ack,
             callback=callback, errback=errback)
Esempio n. 2
0
 def _send_message(self, message, callback=None, errback=None):
     content_type = message.content_type[0]
     ack = msnp.MessageAcknowledgement.HALF
     if content_type in ("text/x-msnmsgr-datacast", "text/x-msmsgscontrol"):
         ack = msnp.MessageAcknowledgement.NONE
     SwitchboardHandler._send_message(self,
                                      message,
                                      ack,
                                      callback=callback,
                                      errback=errback)
Esempio n. 3
0
 def leave(self):
     """Leave the conversation."""
     SwitchboardHandler._leave(self)
Esempio n. 4
0
    def invite_user(self, contact):
        """Request a contact to join in the conversation.

            @param contact: the contact to invite.
            @type contact: L{profile.Contact}"""
        SwitchboardHandler._invite_user(self, contact)
Esempio n. 5
0
 def __init__(self, client, contacts):
     SwitchboardHandler.__init__(self, client, contacts, priority=0)
     AbstractConversation.__init__(self, client)
Esempio n. 6
0
 def leave(self):
     """Leave the conversation."""
     SwitchboardHandler._leave(self)
Esempio n. 7
0
    def invite_user(self, contact):
        """Request a contact to join in the conversation.

            @param contact: the contact to invite.
            @type contact: L{profile.Contact}"""
        SwitchboardHandler._invite_user(self, contact)
Esempio n. 8
0
 def __init__(self, client, contacts):
     SwitchboardHandler.__init__(self, client, contacts, priority=0)
     AbstractConversation.__init__(self, client)