]> git.basschouten.com Git - openhab-addons.git/blob
72ee26f13f322d2fe16d304513412c0f0625f0eb
[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 java.time.LocalDate;
16 import java.util.List;
17
18 import com.google.gson.annotations.SerializedName;
19
20 /**
21  * The {@link SleepDataDay} holds the information for a daily sleep session.
22  *
23  * @author Mark Hilbush - Initial contribution
24  */
25 public class SleepDataDay {
26
27     @SerializedName("date")
28     private LocalDate date;
29
30     @SerializedName("message")
31     private String dailyMessage;
32
33     @SerializedName("sessions")
34     private List<SleepDataSession> dailySessions;
35
36     public LocalDate getDate() {
37         return date;
38     }
39
40     public String getMessage() {
41         return dailyMessage;
42     }
43
44     public List<SleepDataSession> getDailySessions() {
45         return dailySessions;
46     }
47 }