]> git.basschouten.com Git - openhab-addons.git/blob
cb47d6a5f4e775a8dd96578982adfdea698859c3
[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
14 package org.openhab.binding.miio.internal.miot;
15
16 import org.eclipse.jdt.annotation.NonNullByDefault;
17
18 import com.google.gson.annotations.Expose;
19 import com.google.gson.annotations.SerializedName;
20
21 /**
22  * Model Urns DTO for miot spec file.
23  *
24  * To read http://miot-spec.org/miot-spec-v2/instances?status=released
25  *
26  * @author Marcel Verpaalen - Initial contribution
27  */
28 @NonNullByDefault
29 public class ModelUrnsDTO {
30     @SerializedName("model")
31     @Expose
32     private String model = "";
33     @SerializedName("version")
34     @Expose
35     private Integer version = 0;
36     @SerializedName("type")
37     @Expose
38     private String type = "";
39
40     public String getModel() {
41         return model;
42     }
43
44     public void setModel(String model) {
45         this.model = model;
46     }
47
48     public Integer getVersion() {
49         return version;
50     }
51
52     public void setVersion(Integer version) {
53         this.version = version;
54     }
55
56     public String getType() {
57         return type;
58     }
59
60     public void setType(String type) {
61         this.type = type;
62     }
63 }