Skip to content

Commit afc5f32

Browse files
chore: create room event luminosity payload
1 parent 55a015c commit afc5f32

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
* Luminosity payload for {@link application.presenter.event.model.roomevent.RoomEvent}.
13+
*/
14+
public class LuminosityPayload implements RoomEventPayload {
15+
private final double luminosityValue;
16+
private final String luminosityUnit;
17+
18+
/**
19+
* Default constructor.
20+
* @param luminosityValue the luminosity value.
21+
* @param luminosityUnit the luminosity unit.
22+
*/
23+
public LuminosityPayload(final double luminosityValue, final String luminosityUnit) {
24+
this.luminosityValue = luminosityValue;
25+
this.luminosityUnit = luminosityUnit;
26+
}
27+
28+
/**
29+
* Get the luminosity value.
30+
* @return the luminosity.
31+
*/
32+
public double getLuminosityValue() {
33+
return this.luminosityValue;
34+
}
35+
36+
/**
37+
* Get the luminosity unit.
38+
* @return the luminosity unit.
39+
*/
40+
public String getLuminosityUnit() {
41+
return this.luminosityUnit;
42+
}
43+
}

0 commit comments

Comments
 (0)