]> git.basschouten.com Git - openhab-addons.git/blob
6daac5a87247f984ddfe09838365e15627f770a0
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.gree.internal.gson;
14
15 /**
16  *
17  * The GreeStatusResponsePack4Gson class is used by Gson to hold values returned from
18  * the Air Conditioner during requests for Status Updates to the
19  * Air Conditioner.
20  *
21  * @author John Cunha - Initial contribution
22  */
23 public class GreeStatusResponsePackDTO {
24
25     public GreeStatusResponsePackDTO(GreeStatusResponsePackDTO other) {
26         if (other.cols != null) {
27             cols = new String[other.cols.length];
28             dat = new Integer[other.dat.length];
29             System.arraycopy(other.cols, 0, cols, 0, other.cols.length);
30             System.arraycopy(other.dat, 0, dat, 0, other.dat.length);
31         } else {
32             cols = new String[0];
33             dat = new Integer[0];
34         }
35     }
36
37     public String t = null;
38     public String mac = null;
39     public int r = 0;
40     public String[] cols = null;
41     public Integer[] dat = null;
42 }