2.3 KiB
2.3 KiB
Notification
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | [optional] | |
| type | int | Notification type, following the `UserNotificationType` enum: - `1` NEW_VIDEO_FROM_SUBSCRIPTION - `2` NEW_COMMENT_ON_MY_VIDEO - `3` NEW_ABUSE_FOR_MODERATORS - `4` BLACKLIST_ON_MY_VIDEO - `5` UNBLACKLIST_ON_MY_VIDEO - `6` MY_VIDEO_PUBLISHED - `7` MY_VIDEO_IMPORT_SUCCESS - `8` MY_VIDEO_IMPORT_ERROR - `9` NEW_USER_REGISTRATION - `10` NEW_FOLLOW - `11` COMMENT_MENTION - `12` VIDEO_AUTO_BLACKLIST_FOR_MODERATORS - `13` NEW_INSTANCE_FOLLOWER - `14` AUTO_INSTANCE_FOLLOWING - `15` ABUSE_STATE_CHANGE - `16` ABUSE_NEW_MESSAGE - `17` NEW_PLUGIN_VERSION - `18` NEW_PEERTUBE_VERSION | [optional] |
| read | bool | [optional] | |
| video | NotificationVideo | [optional] | |
| video_import | NotificationVideoImport | [optional] | |
| comment | NotificationComment | [optional] | |
| video_abuse | NotificationVideoAbuse | [optional] | |
| video_blacklist | NotificationVideoAbuse | [optional] | |
| account | ActorInfo | [optional] | |
| actor_follow | NotificationActorFollow | [optional] | |
| created_at | datetime | [optional] | |
| updated_at | datetime | [optional] |
Example
from peertube.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_form_dict = notification.from_dict(notification_dict)