models.notifications module¶
-
class
models.notifications.
Notifications
(count=None, notification_list=None, unread_count=None)[source]¶ Bases:
object
Implementation of the ‘Notifications’ model.
All the Notification events generated for a given user. This is used for transferring notifications over wire.
- Attributes:
count (long|int): Notification Count. notification_list (list of TaskNotification): Notification list. unread_count (long|int): Unread Notification Count.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.