mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
Improved sorting of tables and matches.
This commit is contained in:
parent
6e28320493
commit
4e53ff73ea
3 changed files with 50 additions and 6 deletions
|
|
@ -255,4 +255,20 @@ public class Table implements Serializable {
|
|||
this.tournamentSubTable = tournamentSubTable;
|
||||
}
|
||||
|
||||
public Date getStartTime() {
|
||||
if (isTournament) {
|
||||
return tournament.getStartTime();
|
||||
} else {
|
||||
return match.getStartTime();
|
||||
}
|
||||
}
|
||||
|
||||
public Date getEndTime() {
|
||||
if (isTournament) {
|
||||
return tournament.getEndTime();
|
||||
} else {
|
||||
return match.getEndTime();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue