]> git.basschouten.com Git - openhab-addons.git/blob
f53ebf65f9577ded91aa3a830194de1d1b53de0b
[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.XStreamAsAttribute;
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 Version {
26     @XStreamAsAttribute
27     private final int major;
28     @XStreamAsAttribute
29     private final int minor;
30
31     public Version(int major, int minor) {
32         this.major = major;
33         this.minor = minor;
34     }
35
36     public int getMajor() {
37         return major;
38     }
39
40     public int getMinor() {
41         return minor;
42     }
43 }