2 * Copyright (c) 2010-2020 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.json;
15 import java.util.List;
17 import com.google.gson.annotations.SerializedName;
22 * @author Victor Antonovich - Initial contribution
24 public class PowerSaving {
26 @SerializedName("2slots")
27 private List<PowerSavingTimeSlot> timeSlots = null;
29 @SerializedName("yes")
30 private List<PowerSavingTime> times = null;
32 public PowerSaving(List<PowerSavingTimeSlot> timeSlots, String mode, List<PowerSavingTime> times) {
35 this.timeSlots = timeSlots;
38 public List<PowerSavingTimeSlot> getTimeSlots() {
42 public void setTimeSlots(List<PowerSavingTimeSlot> timeSlots) {
43 this.timeSlots = timeSlots;
46 public List<PowerSavingTime> getTimes() {
50 public void setTimes(List<PowerSavingTime> times) {
54 public String getMode() {
58 public void setMode(String mode) {