def initialize(self):
     self.__model = NotificationsModel(self.__unreadMessagesCounter)
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__visibilityController = NotificationVisibilityController(
         self.__model)
     self.__visibilityController.registerNotifications(
         (NOTIFICATION_TYPE.CLUB_INVITE, ))
 def initialize(self):
     self.__model = NotificationsModel(self.__unreadMessagesCounter)
     self.__actionsHandlers = NotificationsActionsHandlers()
     self.__alertsController = AlertController(self.__model)
     self.__layoutController = LayoutController(self.__model)
     self.__visibilityController = NotificationVisibilityController(self.__model)
     self.__visibilityController.registerNotifications((NOTIFICATION_TYPE.CLUB_INVITE,))
class _NotificationMVC:
    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__visibilityController = None
        self.__actionsHandlers = None
        self.__actionsHandlers = None
        self.__unreadMessagesCounter = NotificationsCounter()
        return

    def initialize(self):
        self.__model = NotificationsModel(self.__unreadMessagesCounter)
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)
        self.__visibilityController = NotificationVisibilityController(
            self.__model)
        self.__visibilityController.registerNotifications(
            (NOTIFICATION_TYPE.CLUB_INVITE, ))

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID),
                                            long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__visibilityController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__visibilityController = None
        self.__model = None
        return
class _NotificationMVC:

    def __init__(self):
        self.__model = None
        self.__alertsController = None
        self.__layoutController = None
        self.__visibilityController = None
        self.__actionsHandlers = None
        self.__actionsHandlers = None
        self.__unreadMessagesCounter = NotificationsCounter()
        return

    def initialize(self):
        self.__model = NotificationsModel(self.__unreadMessagesCounter)
        self.__actionsHandlers = NotificationsActionsHandlers()
        self.__alertsController = AlertController(self.__model)
        self.__layoutController = LayoutController(self.__model)
        self.__visibilityController = NotificationVisibilityController(self.__model)
        self.__visibilityController.registerNotifications((NOTIFICATION_TYPE.CLUB_INVITE,))

    def getModel(self):
        return self.__model

    def getAlertController(self):
        return self.__alertsController

    def handleAction(self, typeID, entityID, action):
        self.__actionsHandlers.handleAction(self.__model, int(typeID), long(entityID), action)

    def cleanUp(self):
        self.__alertsController.cleanUp()
        self.__layoutController.cleanUp()
        self.__actionsHandlers.cleanUp()
        self.__visibilityController.cleanUp()
        self.__model.cleanUp()
        self.__alertsController = None
        self.__layoutController = None
        self.__actionsHandlers = None
        self.__visibilityController = None
        self.__model = None
        return