Skip to content

Commit 55a015c

Browse files
chore: create room event humidity payload
1 parent 345114b commit 55a015c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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.roomevent.payload;
10+
11+
/**
12+
* Humidity payload for {@link application.presenter.event.model.roomevent.RoomEvent}.
13+
*/
14+
public class HumidityPayload implements RoomEventPayload {
15+
private final int humidityPercentage;
16+
17+
/**
18+
* Default constructor.
19+
* @param humidityPercentage the humidity percentage.
20+
*/
21+
public HumidityPayload(final int humidityPercentage) {
22+
this.humidityPercentage = humidityPercentage;
23+
}
24+
25+
/**
26+
* Get the Humidity percentage.
27+
* @return the humidity percentage.
28+
*/
29+
public int getHumidityPercentage() {
30+
return this.humidityPercentage;
31+
}
32+
}

0 commit comments

Comments
 (0)