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);
  }
}
