A self hosted chat application with end-to-end encrypted messaging.
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.
 
 
 
 
 
 

51 lines
940 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";
export class UserController implements Controller{
private _model: Model;
private _view: View;
constructor(model: Model, view: View) {
this._model = model;
this._view = view;
}
/**
* Getter model
* @return {Model}
*/
public get model(): Model {
return this._model;
}
/**
* Getter view
* @return {View}
*/
public get view(): View {
return this._view;
}
/**
* Setter model
* @param {Model} value
*/
public set model(value: Model) {
this._model = value;
}
/**
* Setter view
* @param {View} value
*/
public set view(value: View) {
this._view = value;
}
}