]> git.basschouten.com Git - openhab-addons.git/blob
2be87e8289453cfcd01896ab5daf18e0ba842067
[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.mybmw.internal.dto.vehicle;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 /**
19  * 
20  * derived from the API responses
21  * 
22  * @author Martin Grassl - initial contribution
23  */
24 public class ClimateTimer {
25     private boolean isWeeklyTimer = false; // true,
26     private String timerAction = ""; // DEACTIVATE,
27     private List<String> timerWeekDays = new ArrayList<>(); // [ MONDAY ]
28     private DepartureTime departureTime = new DepartureTime();
29
30     public boolean isWeeklyTimer() {
31         return isWeeklyTimer;
32     }
33
34     public void setWeeklyTimer(boolean isWeeklyTimer) {
35         this.isWeeklyTimer = isWeeklyTimer;
36     }
37
38     public String getTimerAction() {
39         return timerAction;
40     }
41
42     public void setTimerAction(String timerAction) {
43         this.timerAction = timerAction;
44     }
45
46     public List<String> getTimerWeekDays() {
47         return timerWeekDays;
48     }
49
50     public void setTimerWeekDays(List<String> timerWeekDays) {
51         this.timerWeekDays = timerWeekDays;
52     }
53
54     public DepartureTime getDepartureTime() {
55         return departureTime;
56     }
57
58     public void setDepartureTime(DepartureTime departureTime) {
59         this.departureTime = departureTime;
60     }
61
62     @Override
63     public String toString() {
64         return "ClimateTimer [isWeeklyTimer=" + isWeeklyTimer + ", timerAction=" + timerAction + ", timerWeekDays="
65                 + timerWeekDays + ", departureTime=" + departureTime + "]";
66     }
67 }