]>
Commit | Line | Data |
---|---|---|
e4f97bab C |
1 | import { |
2 | ActivityCreate, | |
3 | VideoTorrentObject, | |
4 | VideoChannelObject | |
5 | } from '../../../shared' | |
6 | ||
7 | function processUpdateActivity (activity: ActivityCreate) { | |
8 | if (activity.object.type === 'Video') { | |
9 | return processUpdateVideo(activity.object) | |
10 | } else if (activity.object.type === 'VideoChannel') { | |
11 | return processUpdateVideoChannel(activity.object) | |
12 | } | |
13 | } | |
14 | ||
15 | // --------------------------------------------------------------------------- | |
16 | ||
17 | export { | |
18 | processUpdateActivity | |
19 | } | |
20 | ||
21 | // --------------------------------------------------------------------------- | |
22 | ||
23 | function processUpdateVideo (video: VideoTorrentObject) { | |
24 | ||
25 | } | |
26 | ||
27 | function processUpdateVideoChannel (videoChannel: VideoChannelObject) { | |
28 | ||
29 | } |