Added Race Status messages to the mock streaming data interface

Tags: #story[29]
This commit is contained in:
Michael Rausch
2017-04-24 21:53:42 +12:00
parent edc306da22
commit 6874f288ee
7 changed files with 354 additions and 4 deletions
@@ -0,0 +1,26 @@
package seng302.server.messages;
/**
* The current status of the race
*/
public enum RaceStatus {
NOTACTIVE(0),
WARNING(1), // Between 3:00 and 1:00 before start
PREPARATORY(2), // Less than 1:00 before start
STARTED(3),
ABANDONED(6),
POSTPONED(7),
TERMINATED(8),
RACE_START_TIME_NOT_SET(9),
PRESTART(10); // More than 3:00 before start
private int code;
RaceStatus(int code){
this.code = code;
}
public int getCode(){
return this.code;
}
}