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.

50 lines
940 B

  1. import { Controller } from "./AbstractController";
  2. import "../model/AbstractModel"
  3. import "../model/UserModel"
  4. import "../view/AbstractView"
  5. import "../view/UserView"
  6. import { Model } from "../model/AbstractModel";
  7. import { View } from "../view/AbstractView";
  8. export class UserController implements Controller{
  9. private _model: Model;
  10. private _view: View;
  11. constructor(model: Model, view: View) {
  12. this._model = model;
  13. this._view = view;
  14. }
  15. /**
  16. * Getter model
  17. * @return {Model}
  18. */
  19. public get model(): Model {
  20. return this._model;
  21. }
  22. /**
  23. * Getter view
  24. * @return {View}
  25. */
  26. public get view(): View {
  27. return this._view;
  28. }
  29. /**
  30. * Setter model
  31. * @param {Model} value
  32. */
  33. public set model(value: Model) {
  34. this._model = value;
  35. }
  36. /**
  37. * Setter view
  38. * @param {View} value
  39. */
  40. public set view(value: View) {
  41. this._view = value;
  42. }
  43. }