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.airvisualnode.internal.dto.airvisual;
15 import java.util.List;
17 import org.openhab.binding.airvisualnode.internal.dto.PowerSavingTime;
18 import org.openhab.binding.airvisualnode.internal.dto.PowerSavingTimeSlot;
20 import com.google.gson.annotations.SerializedName;
25 * @author Victor Antonovich - Initial contribution
27 public class PowerSaving {
29 @SerializedName("2slots")
30 private List<PowerSavingTimeSlot> timeSlots = null;
32 @SerializedName("yes")
33 private List<PowerSavingTime> times = null;
35 public PowerSaving(List<PowerSavingTimeSlot> timeSlots, String mode, List<PowerSavingTime> times) {
38 this.timeSlots = timeSlots;
41 public List<PowerSavingTimeSlot> getTimeSlots() {
45 public void setTimeSlots(List<PowerSavingTimeSlot> timeSlots) {
46 this.timeSlots = timeSlots;
49 public List<PowerSavingTime> getTimes() {
53 public void setTimes(List<PowerSavingTime> times) {
57 public String getMode() {
61 public void setMode(String mode) {