PeerTube/shared/models/activitypub/objects/video-torrent-object.ts

34 lines
923 B
TypeScript
Raw Normal View History

2017-11-09 17:51:58 +01:00
import {
ActivityIconObject,
2017-12-14 17:38:41 +01:00
ActivityIdentifierObject, ActivityPubAttributedTo,
2017-11-09 17:51:58 +01:00
ActivityTagObject,
ActivityUrlObject
} from './common-objects'
2017-11-23 16:55:13 +01:00
import { ActivityPubOrderedCollection } from '../activitypub-ordered-collection'
2017-11-09 17:51:58 +01:00
export interface VideoTorrentObject {
type: 'Video'
2017-11-10 14:34:45 +01:00
id: string
2017-11-09 17:51:58 +01:00
name: string
duration: string
uuid: string
tag: ActivityTagObject[]
category: ActivityIdentifierObject
licence: ActivityIdentifierObject
language: ActivityIdentifierObject
views: number
nsfw: boolean
2018-01-03 10:12:36 +01:00
commentsEnabled: boolean
published: string
updated: string
2017-11-09 17:51:58 +01:00
mediaType: 'text/markdown'
content: string
icon: ActivityIconObject
url: ActivityUrlObject[]
2017-11-23 16:55:13 +01:00
likes?: ActivityPubOrderedCollection<string>
dislikes?: ActivityPubOrderedCollection<string>
shares?: ActivityPubOrderedCollection<string>
2017-12-28 11:16:08 +01:00
comments?: ActivityPubOrderedCollection<string>
2017-12-14 17:38:41 +01:00
attributedTo: ActivityPubAttributedTo[]
2017-11-09 17:51:58 +01:00
}