]> git.basschouten.com Git - openhab-addons.git/blob
44f622d24bbf709cfd9d6eb698cd7f6a86e3346a
[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.ecovacs.internal.api.impl.dto.response.portal;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * @author Johannes Ptaszyk - Initial contribution
19  */
20 public class Device {
21     @SerializedName("did")
22     private final String did;
23
24     @SerializedName("name")
25     private final String name;
26
27     @SerializedName("class")
28     private final String deviceClass;
29
30     @SerializedName("resource")
31     private final String resource;
32
33     @SerializedName("nick")
34     private final String nick;
35
36     @SerializedName("company")
37     private final String company;
38
39     @SerializedName("bindTs")
40     private final long bindTs;
41
42     @SerializedName("service")
43     private final Service service;
44
45     public Device(String did, String name, String deviceClass, String resource, String nick, String company,
46             long bindTs, Service service) {
47         this.did = did;
48         this.name = name;
49         this.deviceClass = deviceClass;
50         this.resource = resource;
51         this.nick = nick;
52         this.company = company;
53         this.bindTs = bindTs;
54         this.service = service;
55     }
56
57     public String getDid() {
58         return did;
59     }
60
61     public String getName() {
62         return name;
63     }
64
65     public String getDeviceClass() {
66         return deviceClass;
67     }
68
69     public String getResource() {
70         return resource;
71     }
72
73     public String getNick() {
74         return nick;
75     }
76
77     public String getCompany() {
78         return company;
79     }
80
81     public long getBindTs() {
82         return bindTs;
83     }
84
85     public Service getService() {
86         return service;
87     }
88 }