def get_notification_data(self):
        '''
        Provides custom notification data that is used by the transport layer
        when the feed is updated.
        '''
        notification_data = dict()

        if self.track_unseen or self.track_unread:
            unseen_count, unread_count = self.feed_markers.count('unseen', 'unread')
            notification_data['unseen_count'] = unseen_count
            notification_data['unread_count'] = unread_count
        elif self.track_unseen:
            unseen_count = self.feed_markers.count('unseen')
            notification_data['unseen_count'] = unseen_count
        elif self.track_unread:
            unread_count = self.feed_markers.count('unread')
            notification_data['unread_count'] = unread_count

        return notification_data
dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/feeds/notification_feed/base.py/BaseNotificationFeed.get_notification_data/operator `and` -> `or`