]> git.basschouten.com Git - openhab-addons.git/blob
be6cd94de7f8bb101e81e5309f995c61e84553d9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.sleepiq.internal.api.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link SleepDataSession} holds the data for a sleep session.
19  *
20  * @author Mark Hilbush - Initial contribution
21  */
22 public class SleepDataSession {
23
24     @SerializedName("avgSleepIQ")
25     private Integer sessionAverageSleepIQ;
26
27     @SerializedName("avgHeartRate")
28     private Integer sessionAverageHeartRate;
29
30     @SerializedName("avgRespirationRate")
31     private Integer sessionAverageRespirationRate;
32
33     @SerializedName("isFinalized")
34     private boolean sessionIsFinalized;
35
36     @SerializedName("totalSleepSessionTime")
37     private Integer sessionTotalSeconds;
38
39     @SerializedName("inBed")
40     private Integer sessionInBedSeconds;
41
42     @SerializedName("outOfBed")
43     private Integer sessionOutOfBedSeconds;
44
45     @SerializedName("restful")
46     private Integer sessionRestfulSeconds;
47
48     @SerializedName("restless")
49     private Integer sessionRestlessSeconds;
50
51     public Integer getSessionAverageSleepIQ() {
52         return sessionAverageSleepIQ;
53     }
54
55     public Integer getSessionAverageHeartRate() {
56         return sessionAverageHeartRate;
57     }
58
59     public Integer getSessionAverageRespirationRate() {
60         return sessionAverageRespirationRate;
61     }
62
63     public Boolean sessionIsFinalized() {
64         return sessionIsFinalized;
65     }
66
67     public Integer getSessionTotalSeconds() {
68         return sessionTotalSeconds;
69     }
70
71     public Integer getSessionInBedSeconds() {
72         return sessionInBedSeconds;
73     }
74
75     public Integer getSessionOutOfBedSeconds() {
76         return sessionOutOfBedSeconds;
77     }
78
79     public Integer getSessionRestfulSeconds() {
80         return sessionRestfulSeconds;
81     }
82
83     public Integer getSessionRestlessSeconds() {
84         return sessionRestlessSeconds;
85     }
86 }