You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
970 B
30 lines
970 B
import { Controller } from "./AbstractController";
|
|
import "../model/AbstractModel";
|
|
import "../model/UserModel";
|
|
import "../view/AbstractView";
|
|
import "../view/UserView";
|
|
import { Model } from "../model/AbstractModel";
|
|
import { View } from "../view/AbstractView";
|
|
import { ActiveUserViewModel } from "../viewmodel/ActiveUserViewModel";
|
|
import { UserView } from "../view/UserView";
|
|
import { UserModel } from "../model/UserModel";
|
|
import { ChatMessageDTO } from "../../common/dto/ChatMessageDTO";
|
|
import { ChatMessageViewModel } from "../viewmodel/ChatMessageViewModel";
|
|
|
|
export class UserController {
|
|
private _model: UserModel;
|
|
private _view: UserView;
|
|
|
|
constructor(model: UserModel, view: UserView) {
|
|
this._model = model;
|
|
this._view = view;
|
|
}
|
|
|
|
// public getActiveUsers(): void {
|
|
// this._model.getActiveUsers();
|
|
// }
|
|
|
|
decryptForUser(dto: ChatMessageDTO, userName: string): string {
|
|
return this._model.decryptForUser(dto, userName);
|
|
}
|
|
}
|