Skip to content

Commit 479740d

Browse files
chore: create custom light setup request payload
1 parent 0f04675 commit 479740d

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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.payload;
10+
11+
/**
12+
* {@link application.presenter.event.model.automation.request.customlight.CustomLightRequestEvent} event payload
13+
* that represent the request for a custom light setup in a specific operating room.
14+
*/
15+
public class CustomLightSetupRequestPayload implements CustomLightSetupPayload {
16+
/** Custom Light Setup request event key. */
17+
public static final String CUSTOM_LIGHT_SETUP_REQUEST_EVENT_KEY = "CUSTOM_LIGHT_SETUP_REQUEST_EVENT";
18+
private final String roomId;
19+
private final int ambientLightLux;
20+
private final int surgicalLightLux;
21+
22+
/**
23+
* Default constructor.
24+
* @param roomId the room id.
25+
* @param ambientLightLux the ambient light lux setup requested.
26+
* @param surgicalLightLux the surgical light lux setup requested.
27+
*/
28+
public CustomLightSetupRequestPayload(
29+
final String roomId,
30+
final int ambientLightLux,
31+
final int surgicalLightLux
32+
) {
33+
this.roomId = roomId;
34+
this.ambientLightLux = ambientLightLux;
35+
this.surgicalLightLux = surgicalLightLux;
36+
}
37+
38+
/**
39+
* Get the room id involved in the event.
40+
* @return the room id.
41+
*/
42+
public String getRoomId() {
43+
return this.roomId;
44+
}
45+
46+
/**
47+
* Get the ambient light lux setup requested in the event.
48+
* @return the ambient light lux setup.
49+
*/
50+
public int getAmbientLightLux() {
51+
return this.ambientLightLux;
52+
}
53+
54+
/**
55+
* Get the surgical light lux setup requested in the event.
56+
* @return the surgical light lux setup.
57+
*/
58+
public int getSurgicalLightLux() {
59+
return this.surgicalLightLux;
60+
}
61+
}

0 commit comments

Comments
 (0)