From 5cb003e51b7388a6acc50b8fd9acb0c69c119eb4 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 2 May 2018 09:15:09 +0200 Subject: rm ISource & FileSource, combine request & parsing, split filter from parser --- src/sources/HttpSource.ts | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/sources/HttpSource.ts (limited to 'src/sources/HttpSource.ts') diff --git a/src/sources/HttpSource.ts b/src/sources/HttpSource.ts deleted file mode 100644 index f9391aa..0000000 --- a/src/sources/HttpSource.ts +++ /dev/null @@ -1,23 +0,0 @@ -import * as request from 'request-promise-native'; - -import {ISource} from './ISource'; - -export class HttpSource implements ISource { - private _base_uri = 'http://splus.ostfalia.de/semesterplan123.php'; - - constructor(private _course: string) { - } - - getData(weekOfYear: number): PromiseLike { - return request({ - method: 'POST', - uri: this._base_uri, - qs: { - identifier: this._course, - }, - formData: { - weeks: weekOfYear.toString(), - }, - }); - } -} -- cgit v1.3.1