import { BranchProcess } from '../../models/branch-process.model';

export const SET = '[BRANCH-PROCESS] Set';
export const SET_CURRENT_PATH = '[BRANCH-PROCESS] Set current path';
export const RELOAD = '[BRANCH-PROCESS] Reload';

export class SetBranchProcess {
  static readonly type = SET;

  constructor(public branchProcess?: BranchProcess) {}
}

export class SetBranchProcessCurrentPath {
  static readonly type = SET_CURRENT_PATH;

  constructor(public path: string, public removeLastBreadcrumb = false, public queryStrings?: any) {}
}

export class ReloadBranchProcess {
  static readonly type = RELOAD;

  constructor(public branchProcess: BranchProcess) {}
}
