

def get_notification_data(self):
    '\n        Provides custom notification data that is used by the transport layer\n        when the feed is updated.\n        '
    notification_data = dict()
    if (self.track_unseen and 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/original