Skip to content

Commit 433d2c7

Browse files
style: remove sonarcloud code smells
1 parent 6def919 commit 433d2c7

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

src/main/kotlin/entities/events/EventProperties.kt

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,36 @@ package entities.events
1111
/** Module with some event properties. */
1212
object EventProperties {
1313

14+
/** The name of the topic for process events. */
15+
const val processEvents = "process-events"
16+
17+
/** The name of the topic for room events. */
18+
const val roomEvents = "room-events"
19+
20+
/** The name of the topic for tracking events. */
21+
const val trackingEvents = "tracking-events"
22+
23+
/** The name of the topic for booking events. */
24+
const val bookingEvents = "surgery-booking-events"
25+
1426
/** The keys of the events and the [topicName] on which publish the event . */
1527
enum class EventKey(val topicName: String) {
16-
MEDICAL_DEVICE_USAGE_EVENT("process-events"),
17-
MEDICAL_TECHNOLOGY_USAGE_EVENT("process-events"),
18-
TEMPERATURE_EVENT("room-events"),
19-
HUMIDITY_EVENT("room-events"),
20-
LUMINOSITY_EVENT("room-events"),
21-
PRESENCE_EVENT("room-events"),
22-
PATIENT_ON_OB_EVENT("process-events"),
23-
PATIENT_BODY_TEMPERATURE_UPDATE_EVENT("process-events"),
24-
PATIENT_DIASTOLIC_PRESSURE_UPDATE_EVENT("process-events"),
25-
PATIENT_SYSTOLIC_PRESSURE_UPDATE_EVENT("process-events"),
26-
PATIENT_RESPIRATORY_RATE_UPDATE_EVENT("process-events"),
27-
PATIENT_SATURATION_UPDATE_EVENT("process-events"),
28-
PATIENT_HEARTBEAT_UPDATE_EVENT("process-events"),
28+
MEDICAL_DEVICE_USAGE_EVENT(processEvents),
29+
MEDICAL_TECHNOLOGY_USAGE_EVENT(processEvents),
30+
TEMPERATURE_EVENT(roomEvents),
31+
HUMIDITY_EVENT(roomEvents),
32+
LUMINOSITY_EVENT(roomEvents),
33+
PRESENCE_EVENT(roomEvents),
34+
PATIENT_ON_OB_EVENT(processEvents),
35+
PATIENT_BODY_TEMPERATURE_UPDATE_EVENT(processEvents),
36+
PATIENT_DIASTOLIC_PRESSURE_UPDATE_EVENT(processEvents),
37+
PATIENT_SYSTOLIC_PRESSURE_UPDATE_EVENT(processEvents),
38+
PATIENT_RESPIRATORY_RATE_UPDATE_EVENT(processEvents),
39+
PATIENT_SATURATION_UPDATE_EVENT(processEvents),
40+
PATIENT_HEARTBEAT_UPDATE_EVENT(processEvents),
2941
EMPTY_EVENT(""),
30-
PATIENT_TRACKED_EVENT("process-events"),
31-
TRACKING_EVENT("tracking-events"),
32-
SURGERY_BOOKINGS_EVENT("surgery-bookings-events")
42+
PATIENT_TRACKED_EVENT(processEvents),
43+
TRACKING_EVENT(trackingEvents),
44+
SURGERY_BOOKINGS_EVENT(bookingEvents)
3345
}
3446
}

0 commit comments

Comments
 (0)