Skip to content

Commit 3be56f2

Browse files
chore: add label name to room type and medical technology type in events
1 parent 93742a9 commit 3be56f2

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

src/env/application/presenter/event/model/medicaltechnology/MedicalTechnologyTypePayload.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,25 @@
1313
*/
1414
public enum MedicalTechnologyTypePayload {
1515
/** Endoscope. */
16-
ENDOSCOPE,
16+
ENDOSCOPE("endoscope"),
1717
/** X-Ray. */
18-
XRAY
18+
XRAY("xray");
19+
20+
private final String name;
21+
22+
/**
23+
* Default constructor.
24+
* @param name the name
25+
*/
26+
MedicalTechnologyTypePayload(final String name) {
27+
this.name = name;
28+
}
29+
30+
/**
31+
* Obtain the name of the type.
32+
* @return the name
33+
*/
34+
public String getName() {
35+
return this.name;
36+
}
1937
}

src/env/application/presenter/event/model/roomevent/RoomTypePayload.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,25 @@
1313
*/
1414
public enum RoomTypePayload {
1515
/** Operating room. */
16-
OPERATING_ROOM,
16+
OPERATING_ROOM("operatingRoom"),
1717
/** Pre operating room. */
18-
PRE_OPERATING_ROOM
18+
PRE_OPERATING_ROOM("preOperatingRoom");
19+
20+
private final String name;
21+
22+
/**
23+
* Default constructor.
24+
* @param name the name
25+
*/
26+
RoomTypePayload(final String name) {
27+
this.name = name;
28+
}
29+
30+
/**
31+
* Obtain the name of the type.
32+
* @return the name
33+
*/
34+
public String getName() {
35+
return this.name;
36+
}
1937
}

0 commit comments

Comments
 (0)