2020-03-31 14:42:53 +02:00
|
|
|
/**
|
|
|
|
* User Web Sockets requests handler implementation
|
|
|
|
*
|
|
|
|
* @author Pierre Hubert
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { BaseRequestsHandler } from "./BaseRequestsHandler";
|
2020-03-31 14:53:46 +02:00
|
|
|
import { ActiveClient } from "../controllers/UserWebSocketController";
|
|
|
|
import { WsMessage } from "./WsMessage";
|
2020-03-31 14:42:53 +02:00
|
|
|
|
|
|
|
export class UserWebSocketRequestsHandler extends BaseRequestsHandler {
|
|
|
|
|
|
|
|
constructor(private wsClient: ActiveClient, private req: WsMessage) {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected get userID(): number {
|
|
|
|
return this.wsClient.userID;
|
|
|
|
}
|
|
|
|
|
2020-03-31 14:53:46 +02:00
|
|
|
|
2020-03-31 14:42:53 +02:00
|
|
|
protected getPostParam(name: string) {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
public hasPostParameter(name: string): boolean {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
public error(code: number, message: string): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
public success(message: string): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
public send(data: any): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|