41 lines
2.3 KiB
Markdown
41 lines
2.3 KiB
Markdown
# 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**](NotificationVideo.md) | | [optional]
|
|
**video_import** | [**NotificationVideoImport**](NotificationVideoImport.md) | | [optional]
|
|
**comment** | [**NotificationComment**](NotificationComment.md) | | [optional]
|
|
**video_abuse** | [**NotificationVideoAbuse**](NotificationVideoAbuse.md) | | [optional]
|
|
**video_blacklist** | [**NotificationVideoAbuse**](NotificationVideoAbuse.md) | | [optional]
|
|
**account** | [**ActorInfo**](ActorInfo.md) | | [optional]
|
|
**actor_follow** | [**NotificationActorFollow**](NotificationActorFollow.md) | | [optional]
|
|
**created_at** | **datetime** | | [optional]
|
|
**updated_at** | **datetime** | | [optional]
|
|
|
|
## Example
|
|
|
|
```python
|
|
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)
|
|
```
|
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
|
|
|