mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Implement new methods
This commit is contained in:
parent
579983eebc
commit
27785849b4
@ -26,11 +26,13 @@ export class UserWebSocketRequestsHandler extends BaseRequestsHandler {
|
|||||||
|
|
||||||
|
|
||||||
protected getPostParam(name: string) {
|
protected getPostParam(name: string) {
|
||||||
throw new Error("Method not implemented.");
|
return this.req.data[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
public hasPostParameter(name: string): boolean {
|
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 {
|
public error(code: number, message: string): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user