cpd_2022_zi/lib/models/settings.dart

39 lines
798 B
Dart

import 'package:flutter/material.dart';
import 'package:smoke_cess_app/enums/group.dart';
class Settings {
//should use shared preferences package
//https://pub.dev/packages/shared_preferences
Group _group;
TimeOfDay _dailyTrainingStartTime;
late DateTime _experimentStartDate;
Settings(this._group, this._dailyTrainingStartTime) {
_experimentStartDate = DateTime.now();
}
void setGroup(Group group) {
_group = group;
}
void setDailyTrainingStartTime(TimeOfDay time) {
_dailyTrainingStartTime = time;
}
void set(Group group) {
_group = group;
}
Group getGroup() {
return _group;
}
TimeOfDay getDailyTrainingStartTime() {
return _dailyTrainingStartTime;
}
DateTime getExperimentStartDate() {
return _experimentStartDate;
}
}