]> git.basschouten.com Git - openhab-addons.git/blob
7ede1b8e9b0e03e5a73d23612879740c94b064ef
[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.lcn.internal.pchkdiscovery;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 import com.thoughtworks.xstream.annotations.XStreamAlias;
18
19 /**
20  * Used for deserializing the XML response of the LCN-PCHK discovery protocol.
21  *
22  * @author Fabian Wolter - Initial contribution
23  */
24 @NonNullByDefault
25 public class ServicesResponse {
26     @XStreamAlias("Version")
27     private final Version version;
28     @XStreamAlias("Server")
29     private final Server server;
30     @XStreamAlias("ExtServices")
31     private final ExtServices extServices;
32     @XStreamAlias("Services")
33     private final Object services = new Object();
34
35     public ServicesResponse(Version version, Server server, ExtServices extServices) {
36         this.version = version;
37         this.server = server;
38         this.extServices = extServices;
39     }
40
41     public Server getServer() {
42         return server;
43     }
44
45     public Version getVersion() {
46         return version;
47     }
48
49     public ExtServices getExtServices() {
50         return extServices;
51     }
52 }