1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Implement new methods

This commit is contained in:
Pierre HUBERT 2020-03-31 16:37:52 +02:00
parent 579983eebc
commit 27785849b4

View File

@ -26,11 +26,13 @@ export class UserWebSocketRequestsHandler extends BaseRequestsHandler {
protected getPostParam(name: string) {
throw new Error("Method not implemented.");
return this.req.data[name];
}
public hasPostParameter(name: string): boolean {
throw new Error("Method not implemented.");
return this.req.data.hasOwnProperty(name)
&& this.req.data[name] != null
&& this.req.data[name] != undefined;
}
public error(code: number, message: string): void {