2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lcn.internal.pchkdiscovery;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
18 import com.thoughtworks.xstream.annotations.XStreamConverter;
19 import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;
22 * Used for deserializing the XML response of the LCN-PCHK discovery protocol.
24 * @author Fabian Wolter - Initial contribution
27 @XStreamConverter(value = ToAttributedValueConverter.class, strings = { "content" })
30 private final int requestId;
32 private final String machineId;
34 private final String machineName;
36 private final String osShort;
38 private final String osLong;
39 private final String content;
41 public Server(int requestId, String machineId, String machineName, String osShort, String osLong, String content) {
42 this.requestId = requestId;
43 this.machineId = machineId;
44 this.machineName = machineName;
45 this.osShort = osShort;
47 this.content = content;
50 public int getRequestId() {
54 public String getMachineId() {
58 public String getOsShort() {
62 public String getOsLong() {
66 public String getContent() {
70 public Object getMachineName() {