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.

49 lines
1.2 KiB

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var UserView = /** @class */ (function () {
  4. function UserView(model, element) {
  5. this._model = model;
  6. this._element = element;
  7. }
  8. Object.defineProperty(UserView.prototype, "model", {
  9. /**
  10. * Getter model
  11. * @return {Model}
  12. */
  13. get: function () {
  14. return this._model;
  15. },
  16. /**
  17. * Setter model
  18. * @param {Model} value
  19. */
  20. set: function (value) {
  21. this._model = value;
  22. },
  23. enumerable: true,
  24. configurable: true
  25. });
  26. Object.defineProperty(UserView.prototype, "element", {
  27. /**
  28. * Getter element
  29. * @return {any}
  30. */
  31. get: function () {
  32. return this._element;
  33. },
  34. /**
  35. * Setter element
  36. * @param {any} value
  37. */
  38. set: function (value) {
  39. this._element = value;
  40. },
  41. enumerable: true,
  42. configurable: true
  43. });
  44. UserView.prototype.update = function (data) {
  45. console.log(data);
  46. };
  47. return UserView;
  48. }());
  49. exports.UserView = UserView;