SDKModel.js 590 B

12345678910
  1. const _registeredModels=new Map();export default class SDKModel extends Common.Object{constructor(target){super();this._target=target;}
  2. target(){return this._target;}
  3. preSuspendModel(reason){return Promise.resolve();}
  4. suspendModel(reason){return Promise.resolve();}
  5. resumeModel(){return Promise.resolve();}
  6. postResumeModel(){return Promise.resolve();}
  7. dispose(){}
  8. static register(modelClass,capabilities,autostart){_registeredModels.set(modelClass,{capabilities,autostart});}
  9. static get registeredModels(){return _registeredModels;}}
  10. self.SDK=self.SDK||{};SDK=SDK||{};SDK.SDKModel=SDKModel;