intervalVariableBuilder.ts 626 B

12345678910111213141516171819202122232425
  1. import { IntervalVariableModel, VariableRefresh } from 'app/features/variables/types';
  2. import { OptionsVariableBuilder } from './optionsVariableBuilder';
  3. export class IntervalVariableBuilder extends OptionsVariableBuilder<IntervalVariableModel> {
  4. withRefresh(refresh: VariableRefresh) {
  5. this.variable.refresh = refresh;
  6. return this;
  7. }
  8. withAuto(auto: boolean) {
  9. this.variable.auto = auto;
  10. return this;
  11. }
  12. withAutoCount(autoCount: number) {
  13. this.variable.auto_count = autoCount;
  14. return this;
  15. }
  16. withAutoMin(autoMin: string) {
  17. this.variable.auto_min = autoMin;
  18. return this;
  19. }
  20. }