2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.sleepiq.internal.api.dto;
15 import com.google.gson.annotations.SerializedName;
18 * The {@link SleepDataSession} holds the data for a sleep session.
20 * @author Mark Hilbush - Initial contribution
22 public class SleepDataSession {
24 @SerializedName("sleepQuotient")
25 private Integer sessionAverageSleepIQ;
27 @SerializedName("avgHeartRate")
28 private Integer sessionAverageHeartRate;
30 @SerializedName("avgRespirationRate")
31 private Integer sessionAverageRespirationRate;
33 @SerializedName("isFinalized")
34 private boolean sessionIsFinalized;
36 @SerializedName("totalSleepSessionTime")
37 private Integer sessionTotalSeconds;
39 @SerializedName("inBed")
40 private Integer sessionInBedSeconds;
42 @SerializedName("outOfBed")
43 private Integer sessionOutOfBedSeconds;
45 @SerializedName("restful")
46 private Integer sessionRestfulSeconds;
48 @SerializedName("restless")
49 private Integer sessionRestlessSeconds;
51 public Integer getSessionAverageSleepIQ() {
52 return sessionAverageSleepIQ;
55 public Integer getSessionAverageHeartRate() {
56 return sessionAverageHeartRate;
59 public Integer getSessionAverageRespirationRate() {
60 return sessionAverageRespirationRate;
63 public Boolean sessionIsFinalized() {
64 return sessionIsFinalized;
67 public Integer getSessionTotalSeconds() {
68 return sessionTotalSeconds;
71 public Integer getSessionInBedSeconds() {
72 return sessionInBedSeconds;
75 public Integer getSessionOutOfBedSeconds() {
76 return sessionOutOfBedSeconds;
79 public Integer getSessionRestfulSeconds() {
80 return sessionRestfulSeconds;
83 public Integer getSessionRestlessSeconds() {
84 return sessionRestlessSeconds;