def __init__(self, rsi, callback, errback): """Accepts an invitation. @param rsi: the rsi service @param callback: tuple(callable, *args) @param errback: tuple(callable, *args) """ BaseScenario.__init__(self, callback, errback) self.__rsi = rsi
def __init__(self, rsi, callback, errback, global_callback, message_ids=[]): """Accepts an invitation. @param rsi: the rsi service @param message_ids: id list of messages to fetch @param callback: tuple(callable, *args) @param errback: tuple(callable, *args) """ BaseScenario.__init__(self, callback, errback) self.__rsi = rsi self.__global_callback = global_callback self.message_ids = message_ids
def __init__(self, oim, client, recipient, message, callback, errback): """Accepts an invitation. @param oim: the oim service @param client: the client object sending the OIM @param recipient: the contact to send the OIM to @param message: the message to send @param callback: tuple(callable, *args) @param errback: tuple(callable, *args) """ BaseScenario.__init__(self, callback, errback) self.__oim = oim self.__client = client self.__from = client.profile self.__to = recipient self.run_id = "" self.sequence_num = -1 self.__msg = message