Skip to content

Commit 8a033c2

Browse files
feat(events): create room event
1 parent bae7326 commit 8a033c2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 entities.events
10+
11+
/**
12+
* The event of change of humidity in a room of the operating block.
13+
*/
14+
data class RoomEvent<E : Any> (
15+
16+
override val key: String = "ROOM_EVENT",
17+
/**
18+
* The room ID.
19+
*/
20+
val roomId: String,
21+
22+
override val data: E,
23+
24+
) : Event<E>

0 commit comments

Comments
 (0)