def __init__(self, profile, core): self.__profile = profile self.__commands = {} self.__snd_streams = {} self.__rec_streams = {} self.__tml_core = core self.__on_cmd_custom_dispatch = None self.__on_cmd_ready = None self.__on_populate_event_consumer = None self.__on_populate_call_destinations = None self.__on_progress = None self.__on_status_reply = None self.__on_event_error = None self.__on_queue_overflow = None self.__on_register_event_consumer = None self.__on_register_call_destination = None self.__on_busy_status_request = None self.__on_balance_calculation = None self.__pending_commands = {} tml.tml_Profile_Set_OnCustomDispatch(self.__tml_core.core_handle, self.__profile, on_cmd_custom_dispatch_handler, self) return # ------------ properties --------------------- # -- the code here is for documentation only -- self.on_cmd_custom_dispatch = None self.on_cmd_ready = None self.on_populate_event_consumer = None self.on_populate_call_destinations = None self.on_progress = None self.on_status_reply = None self.on_event_error = None self.on_queue_overflow = None self.on_register_event_consumer = None self.on_register_call_destination = None self.on_busy_status_request = None self.on_balance_calculation = None self.tml_core = None self.profile_url = ''
def on_cmd_custom_dispatch(self, value): if value is None: tml.tml_Profile_Set_OnCustomDispatch(self.__tml_core.core_handle, self.__profile, None, None) else: tml.tml_Profile_Set_OnCustomDispatch(self.__tml_core.core_handle, self.__profile, None, None) tml.tml_Profile_Set_OnCustomDispatch(self.__tml_core.core_handle, self.__profile, on_cmd_custom_dispatch_handler, self) self.__on_cmd_custom_dispatch = value