]> git.basschouten.com Git - openhab-addons.git/blob
8e3cd912c18ef98f3a6966ee4f51c6a8a8ac7502
[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.tellstick.internal.local.dto;
14
15 import org.openhab.binding.tellstick.internal.live.xml.LiveDataType;
16
17 /**
18  * Class used to deserialize JSON from Telldus local API.
19  *
20  * @author Jan Gustafsson - Initial contribution
21  */
22 public class LocalDataTypeValueDTO {
23
24     private String name;
25     private int scale;
26     private String value;
27
28     public LiveDataType getName() {
29         return LiveDataType.fromName(name);
30     }
31
32     public void setName(String name) {
33         this.name = name;
34     }
35
36     public int getScale() {
37         return scale;
38     }
39
40     public void setScale(int scale) {
41         this.scale = scale;
42     }
43
44     public String getValue() {
45         return value;
46     }
47
48     public void setValue(String value) {
49         this.value = value;
50     }
51 }