Skip to content

Commit 2e059d4

Browse files
chore: create custom light setup stop payload
1 parent 479740d commit 2e059d4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 to stop the custom management of lights in a specific operating room.
14+
*/
15+
public class CustomLightStopRequestPayload implements CustomLightSetupPayload {
16+
/** Custom Light Stop request event key. */
17+
public static final String CUSTOM_LIGHT_STOP_REQUEST_EVENT_KEY = "CUSTOM_LIGHT_STOP_REQUEST_EVENT";
18+
19+
private final String roomId;
20+
21+
/**
22+
* Default constructor.
23+
* @param roomId the room id involved in the event.
24+
*/
25+
public CustomLightStopRequestPayload(final String roomId) {
26+
this.roomId = roomId;
27+
}
28+
29+
/**
30+
* Get the room id involved in the event.
31+
* @return the room id.
32+
*/
33+
public String getRoomId() {
34+
return this.roomId;
35+
}
36+
}

0 commit comments

Comments
 (0)