-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DevKevYT
committed
Dec 22, 2022
1 parent
85c60ad
commit 65c4ffb
Showing
8 changed files
with
151 additions
and
234 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:sol_connect/core/excel/models/mergedtimetable.dart'; | ||
|
||
///Anders als "mergedTimetable" beinhaltet diese Klasse einen kompletten Block, nicht nur eine Woche | ||
class MergedBlock { | ||
|
||
final _hours = <MergedTimeTable>[]; | ||
|
||
final DateTime _blockStart; | ||
final DateTime _blockEnd; | ||
|
||
MergedBlock(this._blockStart, this._blockEnd, List<MergedTimeTable> weeks) { | ||
for (MergedTimeTable week in weeks) { | ||
_hours.add(week); //TODO @DevKevYT further checks for valid weeks | ||
} | ||
} | ||
|
||
DateTime get blockStart => _blockStart; | ||
|
||
DateTime get blockEnd => _blockEnd; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.