File tree 1 file changed +54
-0
lines changed
src/env/application/presenter/event/model/automation/request/customlight
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2023. Smart Operating Block
3
+ *
4
+ * Use of this source code is governed by an MIT-style
5
+ * license that can be found in the LICENSE file or at
6
+ * https://opensource.org/licenses/MIT.
7
+ */
8
+
9
+ package application .presenter .event .model .automation .request .customlight ;
10
+
11
+ import application .presenter .event .model .Event ;
12
+ import application .presenter .event .model .automation .request .customlight .payload .CustomLightSetupPayload ;
13
+
14
+ /**
15
+ * Custom light setup request event.
16
+ * This is the event with which a doctor request a custom light setup inside the Operating Room.
17
+ * @param <E> the type of the event payload.
18
+ */
19
+ public class CustomLightRequestEvent <E extends CustomLightSetupPayload > implements Event <E > {
20
+ private final String key ;
21
+ private final E data ;
22
+ private final String dateTime ;
23
+
24
+ /**
25
+ * Default constructor.
26
+ * @param key the key of the event.
27
+ * @param data the data payload of the event.
28
+ * @param dateTime the datetime of the event.
29
+ */
30
+ public CustomLightRequestEvent (
31
+ final String key ,
32
+ final E data ,
33
+ final String dateTime
34
+ ) {
35
+ this .key = key ;
36
+ this .data = data ;
37
+ this .dateTime = dateTime ;
38
+ }
39
+
40
+ @ Override
41
+ public final String getKey () {
42
+ return this .key ;
43
+ }
44
+
45
+ @ Override
46
+ public final E getData () {
47
+ return this .data ;
48
+ }
49
+
50
+ @ Override
51
+ public final String getDateTime () {
52
+ return this .dateTime ;
53
+ }
54
+ }
You can’t perform that action at this time.
0 commit comments