BaseProxy.js 838 B

1234567891011121314151617181920212223242526272829303132
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0});
  5. const s = t("App");
  6. i.default = class {
  7. constructor(t) {
  8. (this._model = null), (this._controller = t);
  9. }
  10. setModel(t) {
  11. this._model = t;
  12. }
  13. get isInit() {
  14. return this._isInit;
  15. }
  16. applyFunc(t) {
  17. return this._controller.applyFunc.apply(this._controller, arguments);
  18. }
  19. applyControllerFunc(t, e) {
  20. return this._controller.applyControllerFunc.apply(this._controller, arguments);
  21. }
  22. receiveServerMsg(t, e, i) {}
  23. removeServerMsg(t, e, i) {
  24. s.default.NotificationCenter.removeListener(t, e, i);
  25. }
  26. isError(t, e) {
  27. return 1 != t.resultConst;
  28. }
  29. dispatch(t, ...e) {
  30. s.default.NotificationCenter.dispatch(t, ...e);
  31. }
  32. };