63669: Content Source valid check + JSDocs

This commit is contained in:
Kristof De Langhe
2019-07-12 15:11:38 +02:00
parent 615a47fe5b
commit 7774c3c83c
3 changed files with 46 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
import { v4 as uuid } from 'uuid';
/**
* A model class that holds information about the Content Source of a Collection
*/
export class ContentSource {
/**
* Unique identifier
@@ -32,6 +35,7 @@ export class ContentSource {
harvest = 3;
constructor() {
// TODO: Remove this once the Content Source is fetched from the REST API and a custom generated UUID is not necessary anymore
this.uuid = uuid();
}
}