tripnomics_7.5.5/public/app/features/variables/shared/testing/intervalVariableBuilder.ts
venbatechnologies@gmail.com 91fce5c4bf Initial commit
2021-07-05 13:49:40 +05:30

25 lines
625 B
TypeScript

import { OptionsVariableBuilder } from './optionsVariableBuilder';
import { IntervalVariableModel, VariableRefresh } from 'app/features/variables/types';
export class IntervalVariableBuilder extends OptionsVariableBuilder<IntervalVariableModel> {
withRefresh(refresh: VariableRefresh) {
this.variable.refresh = refresh;
return this;
}
withAuto(auto: boolean) {
this.variable.auto = auto;
return this;
}
withAutoCount(autoCount: number) {
this.variable.auto_count = autoCount;
return this;
}
withAutoMin(autoMin: string) {
this.variable.auto_min = autoMin;
return this;
}
}