]> git.basschouten.com Git - openhab-addons.git/blob
516393032c5b0ecdce8526308de1ce030677e738
[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 java.util.ArrayList;
16 import java.util.List;
17
18 import org.openhab.binding.vizio.internal.dto.Status;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * The {@link PowerMode} class maps the JSON data response from the Vizio TV endpoint:
24  * '/state/device/power_mode'
25  *
26  * @author Michael Lobstein - Initial contribution
27  */
28 public class PowerMode {
29     @SerializedName("STATUS")
30     private Status status;
31     @SerializedName("ITEMS")
32     private List<ItemPower> items = new ArrayList<ItemPower>();
33     @SerializedName("URI")
34     private String uri;
35
36     public Status getStatus() {
37         return status;
38     }
39
40     public void setStatus(Status status) {
41         this.status = status;
42     }
43
44     public List<ItemPower> getItems() {
45         return items;
46     }
47
48     public void setItems(List<ItemPower> items) {
49         this.items = items;
50     }
51
52     public String getUri() {
53         return uri;
54     }
55
56     public void setUri(String uri) {
57         this.uri = uri;
58     }
59 }