forked from Outils-PeerTube/listener-rss-aggregator
added test's setup
This commit is contained in:
@ -1,5 +1,19 @@
|
||||
import {} from "";
|
||||
import { ListenerRss, ListenerRSSInfos } from "listener-rss/src/";
|
||||
|
||||
/**
|
||||
* Permit to manage a ListenerRSS array, data storage and event aggregation
|
||||
*/
|
||||
export class GestionListener {
|
||||
GestionListener(): any {}
|
||||
listenerArray: ListenerRss[] = [];
|
||||
|
||||
GestionListener(path?: string): void {
|
||||
if (path) {
|
||||
// load a file or a bdd
|
||||
} else {
|
||||
// keep the class empty
|
||||
}
|
||||
}
|
||||
addNewListener(info: ListenerRSSInfos): void {
|
||||
this.listenerArray.concat(new ListenerRss(info));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user