]> git.basschouten.com Git - openhab-addons.git/blob
e2aaddbb12973a8d1d738c12dd47d155b99a107e
[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.neato.internal.classes;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * The {@link Robot} is the internal class for Neato Robot. Information is retrieved from the web service call.
21  *
22  * @author Patrik Wimnell - Initial contribution
23  */
24 public class Robot {
25
26     private String serial;
27     private Object prefix;
28     private String name;
29     private String model;
30     @SerializedName("secret_key")
31     private String secretKey;
32     private List<Object> traits = null;
33     @SerializedName("purchased_at")
34     private Object purchasedAt;
35     @SerializedName("linked_at")
36     private String linkedAt;
37     @SerializedName("proof_of_purchase_url")
38     private Object proofOfPurchaseUrl;
39     @SerializedName("proof_of_purchase_url_valid_for_seconds")
40     private Integer proofOfPurchaseUrlValidForSeconds;
41     @SerializedName("proof_of_purchase_generated_at")
42     private Object proofOfPurchaseGeneratedAt;
43     @SerializedName("mac_address")
44     private String macAddress;
45     @SerializedName("created_at")
46     private String createdAt;
47
48     public String getSerial() {
49         return serial;
50     }
51
52     public void setSerial(String serial) {
53         this.serial = serial;
54     }
55
56     public Object getPrefix() {
57         return prefix;
58     }
59
60     public void setPrefix(Object prefix) {
61         this.prefix = prefix;
62     }
63
64     public String getName() {
65         return name;
66     }
67
68     public void setName(String name) {
69         this.name = name;
70     }
71
72     public String getModel() {
73         return model;
74     }
75
76     public void setModel(String model) {
77         this.model = model;
78     }
79
80     public String getSecretKey() {
81         return secretKey;
82     }
83
84     public void setSecretKey(String secretKey) {
85         this.secretKey = secretKey;
86     }
87
88     public Object getPurchasedAt() {
89         return purchasedAt;
90     }
91
92     public void setPurchasedAt(Object purchasedAt) {
93         this.purchasedAt = purchasedAt;
94     }
95
96     public String getLinkedAt() {
97         return linkedAt;
98     }
99
100     public void setLinkedAt(String linkedAt) {
101         this.linkedAt = linkedAt;
102     }
103
104     public List<Object> getTraits() {
105         return traits;
106     }
107
108     public void setTraits(List<Object> traits) {
109         this.traits = traits;
110     }
111
112     public Object getProofOfPurchaseUrl() {
113         return proofOfPurchaseUrl;
114     }
115
116     public void setProofOfPurchaseUrl(Object proofOfPurchaseUrl) {
117         this.proofOfPurchaseUrl = proofOfPurchaseUrl;
118     }
119
120     public Integer getProofOfPurchaseUrlValidForSeconds() {
121         return proofOfPurchaseUrlValidForSeconds;
122     }
123
124     public void setProofOfPurchaseUrlValidForSeconds(Integer proofOfPurchaseUrlValidForSeconds) {
125         this.proofOfPurchaseUrlValidForSeconds = proofOfPurchaseUrlValidForSeconds;
126     }
127
128     public Object getProofOfPurchaseGeneratedAt() {
129         return proofOfPurchaseGeneratedAt;
130     }
131
132     public void setProofOfPurchaseGeneratedAt(Object proofOfPurchaseGeneratedAt) {
133         this.proofOfPurchaseGeneratedAt = proofOfPurchaseGeneratedAt;
134     }
135
136     public String getMacAddress() {
137         return macAddress;
138     }
139
140     public void setMacAddress(String macAddress) {
141         this.macAddress = macAddress;
142     }
143
144     public String getCreatedAt() {
145         return createdAt;
146     }
147
148     public void setCreatedAt(String createdAt) {
149         this.createdAt = createdAt;
150     }
151
152     public boolean discoveryInformationPresent() {
153         return serial != null && secretKey != null && name != null && model != null;
154     }
155 }