Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
jabberbot.commands.NotificationCommand Class Reference
Inheritance diagram for jabberbot.commands.NotificationCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__

Public Attributes

 notification
 jids
 async
 msg_type

Detailed Description

Class representing a notification request

Definition at line 15 of file commands.py.


Constructor & Destructor Documentation

def jabberbot.commands.NotificationCommand.__init__ (   self,
  jids,
  notification,
  msg_type = u"normal",
  async = True 
)
A constructor

@param jids: a list of jids to sent this message to
@param notification: dictionary with notification data
@param async: async notifications get queued if contact is DnD
@type jids: list

Reimplemented in jabberbot.commands.NotificationCommandI18n.

Definition at line 17 of file commands.py.

00017 
00018     def __init__(self, jids, notification, msg_type=u"normal", async=True):
00019         """A constructor
00020 
00021         @param jids: a list of jids to sent this message to
00022         @param notification: dictionary with notification data
00023         @param async: async notifications get queued if contact is DnD
00024         @type jids: list
00025 
00026         """
00027         if type(jids) != list:
00028             raise Exception("jids argument must be a list!")
00029 
00030         self.notification = notification
00031         self.jids = jids
00032         self.async = async
00033         self.msg_type = msg_type


Member Data Documentation

Definition at line 31 of file commands.py.

Definition at line 30 of file commands.py.

Definition at line 32 of file commands.py.

Definition at line 29 of file commands.py.


The documentation for this class was generated from the following file: