def __init__(self, counter): self.__currentDisplayState = None self.__collection = NotificationsCollection() self.__listeners = NotificationsListeners() self.__counter = counter self.onDisplayStateChanged = Event.Event() self.onNotificationReceived = Event.Event() self.onNotificationUpdated = Event.Event() self.onNotificationRemoved = Event.Event() self.onNotifiedMessagesCountChanged = Event.Event() self.__setDisplayState(NOTIFICATION_STATE.POPUPS, {}) return
def __init__(self): self.__layoutSettings = {'paddingRight': 0, 'paddingBottom': 0} self.__currentDisplayState = None self.__collection = NotificationsCollection() self.__listeners = NotificationsListeners() self.__counter = NotificationsCounter() self.onLayoutSettingsChanged = Event.Event() self.onDisplayStateChanged = Event.Event() self.onNotificationReceived = Event.Event() self.onNotificationUpdated = Event.Event() self.onNotificationRemoved = Event.Event() self.onNotifiedMessagesCountChanged = Event.Event() self.__setDisplayState(NOTIFICATION_STATE.POPUPS, {})