Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.49 KB

File metadata and controls

33 lines (24 loc) · 1.49 KB

Notification

{@link Notification Notification} is a custom extension that used to store notification information for inner use, it's on-site notification.

Supports the following operations:

  • Marked as read: {@link NotificationSpec#setUnread(boolean) NotificationSpec#setUnread(boolean)}
  • Get the last read time: {@link NotificationSpec#getLastReadAt NotificationSpec#getLastReadAt()}
  • Filter by recipient: {@link NotificationSpec#getRecipient NotificationSpec#getRecipient()}

Properties

Name Type Description Notes
api_version str
kind str
metadata Metadata
spec NotificationSpec [optional]

Example

from halo_client.models.notification import Notification

# TODO update the JSON string below
json = "{}"
# create an instance of Notification from a JSON string
notification_instance = Notification.from_json(json)
# print the JSON string representation of the object
print(Notification.to_json())

# convert the object into a dict
notification_dict = notification_instance.to_dict()
# create an instance of Notification from a dict
notification_from_dict = Notification.from_dict(notification_dict)

[Back to Model list] [Back to API list] [Back to README]