diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-26 13:13:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-26 15:18:30 +0200 |
commit | ee286591a5b740702bad66c55cc900740f749e9a (patch) | |
tree | 16503d1299a107c5972ba16f95228b1ebce20f79 /shared/models | |
parent | 16d54696294d15f8ab6ba3a6bcfac21528fec2f2 (diff) | |
download | PeerTube-ee286591a5b740702bad66c55cc900740f749e9a.tar.gz PeerTube-ee286591a5b740702bad66c55cc900740f749e9a.tar.zst PeerTube-ee286591a5b740702bad66c55cc900740f749e9a.zip |
Plugins can update video constants
Categories, licences and languages
Diffstat (limited to 'shared/models')
3 files changed, 15 insertions, 0 deletions
diff --git a/shared/models/plugins/plugin-video-category-manager.model.ts b/shared/models/plugins/plugin-video-category-manager.model.ts new file mode 100644 index 000000000..201bfa979 --- /dev/null +++ b/shared/models/plugins/plugin-video-category-manager.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface PluginVideoCategoryManager { | ||
2 | addCategory: (categoryKey: number, categoryLabel: string) => boolean | ||
3 | |||
4 | deleteCategory: (categoryKey: number) => boolean | ||
5 | } | ||
diff --git a/shared/models/plugins/plugin-video-language-manager.model.ts b/shared/models/plugins/plugin-video-language-manager.model.ts new file mode 100644 index 000000000..3fd577a79 --- /dev/null +++ b/shared/models/plugins/plugin-video-language-manager.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface PluginVideoLanguageManager { | ||
2 | addLanguage: (languageKey: string, languageLabel: string) => boolean | ||
3 | |||
4 | deleteLanguage: (languageKey: string) => boolean | ||
5 | } | ||
diff --git a/shared/models/plugins/plugin-video-licence-manager.model.ts b/shared/models/plugins/plugin-video-licence-manager.model.ts new file mode 100644 index 000000000..82a634d3a --- /dev/null +++ b/shared/models/plugins/plugin-video-licence-manager.model.ts | |||
@@ -0,0 +1,5 @@ | |||
1 | export interface PluginVideoLicenceManager { | ||
2 | addLicence: (licenceKey: number, licenceLabel: string) => boolean | ||
3 | |||
4 | deleteLicence: (licenceKey: number) => boolean | ||
5 | } | ||