-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
d3b874d
commit ed1ca38
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/in/ac/skcet/event_manager/event/Location.java
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,27 @@ | ||
package in.ac.skcet.event_manager.event; | ||
|
||
public enum Location { | ||
EXTERNAL, | ||
REMOTE, | ||
KRISHNA_HALL, | ||
BS01, | ||
BS02, | ||
BS03, | ||
BS04, | ||
SEMINAR_HALL, | ||
CONFERENCE_HALL, | ||
JB_LAB, | ||
AK_LAB; | ||
|
||
// Default value | ||
public static final Location DEFAULT = EXTERNAL; | ||
|
||
public static Location fromString(String text) { | ||
for (Location location : Location.values()) { | ||
if (location.name().equalsIgnoreCase(text)) { | ||
return location; | ||
} | ||
} | ||
return null; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/main/java/in/ac/skcet/event_manager/on_duty/OnDutyForm.java
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