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.ecovacs.internal.api.impl.dto.response.portal;
15 import com.google.gson.annotations.SerializedName;
18 * @author Johannes Ptaszyk - Initial contribution
21 @SerializedName("did")
22 private final String did;
24 @SerializedName("name")
25 private final String name;
27 @SerializedName("class")
28 private final String deviceClass;
30 @SerializedName("resource")
31 private final String resource;
33 @SerializedName("nick")
34 private final String nick;
36 @SerializedName("company")
37 private final String company;
39 @SerializedName("bindTs")
40 private final long bindTs;
42 @SerializedName("service")
43 private final Service service;
45 public Device(String did, String name, String deviceClass, String resource, String nick, String company,
46 long bindTs, Service service) {
49 this.deviceClass = deviceClass;
50 this.resource = resource;
52 this.company = company;
54 this.service = service;
57 public String getDid() {
61 public String getName() {
65 public String getDeviceClass() {
69 public String getResource() {
73 public String getNick() {
77 public String getCompany() {
81 public long getBindTs() {
85 public Service getService() {