示例#1
0
 def __init__(self, provider, adminChat):
     super(ClubChatHandler, self).__init__(
         provider, adminChat,
         _ActionsCollection(_ACTIONS.INIT_CLUB_CHAT,
                            _ACTIONS.DEINIT_CLUB_CHAT,
                            _ACTIONS.ON_CLUB_MESSAGE_BROADCAST,
                            _ACTIONS.BROADCAST_CLUB_MESSAGE),
         wrappers.UnitDataFactory(), limits.UnitLimits())
     self.__channel = None
 def __init__(self, provider, adminChat):
     super(UnitChatHandler, self).__init__(
         provider, adminChat,
         _ActionsCollection(_ACTIONS.INIT_UNIT_CHAT,
                            _ACTIONS.DEINIT_UNIT_CHAT,
                            _ACTIONS.ON_UNIT_MESSAGE_BROADCAST,
                            _ACTIONS.BROADCAST_UNIT_MESSAGE),
         wrappers.UnitDataFactory(), limits.UnitLimits())
     self.__channel = None
     self.__history = None
     self.__factory = UnitCommandFactory()
     return