]> git.basschouten.com Git - openhab-addons.git/blob
c621caf104b184513fa7cd629e0f70b0c8bec6d8
[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.vizio.internal.dto.power;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link ItemPower} class contains data from the Vizio TV JSON response
19  *
20  * @author Michael Lobstein - Initial contribution
21  */
22 public class ItemPower {
23     @SerializedName("CNAME")
24     private String cname;
25     @SerializedName("TYPE")
26     private String type;
27     @SerializedName("NAME")
28     private String name;
29     @SerializedName("VALUE")
30     private int value;
31
32     public String getCname() {
33         return cname;
34     }
35
36     public void setCname(String cname) {
37         this.cname = cname;
38     }
39
40     public String getType() {
41         return type;
42     }
43
44     public void setType(String type) {
45         this.type = type;
46     }
47
48     public String getName() {
49         return name;
50     }
51
52     public void setName(String name) {
53         this.name = name;
54     }
55
56     public int getValue() {
57         return value;
58     }
59
60     public void setValue(int value) {
61         this.value = value;
62     }
63 }