import { LoadingDialog } from "../dialog/LoadingDialog";

export class BaseViewModel {
  ctx: UIContext;

  constructor(context: UIContext) {
    this.ctx = context;
  }

  showLoading(cancelable: boolean = false) {
    LoadingDialog.show(this.ctx, cancelable);
  }

  dismissLoading() {
    LoadingDialog.dismiss();
  }
}