]> git.basschouten.com Git - openhab-addons.git/blob
597dab35f293e82de8d63759b00954fb659ece89
[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.tplinksmarthome.internal.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Data class for getting the tp-Link Smart Plug state.
19  * Only getter methods as the values are set by gson based on the retrieved json.
20  *
21  * @author Hilbrand Bouwkamp - Initial contribution
22  */
23 @NonNullByDefault
24 public class GetSysinfo {
25
26     public static class System {
27         private Sysinfo getSysinfo = new Sysinfo();
28
29         public Sysinfo getGetSysinfo() {
30             return getSysinfo;
31         }
32
33         @Override
34         public String toString() {
35             return "get_sysinfo:{" + getSysinfo + "}";
36         }
37     }
38
39     private System system = new System();
40
41     public Sysinfo getSysinfo() {
42         return system.getGetSysinfo();
43     }
44
45     @Override
46     public String toString() {
47         return "GetSysinfo {system:{" + system + "}}";
48     }
49 }