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.neato.internal.classes;
15 import java.util.List;
17 import com.google.gson.annotations.SerializedName;
20 * The {@link Robot} is the internal class for Neato Robot. Information is retrieved from the web service call.
22 * @author Patrik Wimnell - Initial contribution
26 private String serial;
27 private Object prefix;
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;
48 public String getSerial() {
52 public void setSerial(String serial) {
56 public Object getPrefix() {
60 public void setPrefix(Object prefix) {
64 public String getName() {
68 public void setName(String name) {
72 public String getModel() {
76 public void setModel(String model) {
80 public String getSecretKey() {
84 public void setSecretKey(String secretKey) {
85 this.secretKey = secretKey;
88 public Object getPurchasedAt() {
92 public void setPurchasedAt(Object purchasedAt) {
93 this.purchasedAt = purchasedAt;
96 public String getLinkedAt() {
100 public void setLinkedAt(String linkedAt) {
101 this.linkedAt = linkedAt;
104 public List<Object> getTraits() {
108 public void setTraits(List<Object> traits) {
109 this.traits = traits;
112 public Object getProofOfPurchaseUrl() {
113 return proofOfPurchaseUrl;
116 public void setProofOfPurchaseUrl(Object proofOfPurchaseUrl) {
117 this.proofOfPurchaseUrl = proofOfPurchaseUrl;
120 public Integer getProofOfPurchaseUrlValidForSeconds() {
121 return proofOfPurchaseUrlValidForSeconds;
124 public void setProofOfPurchaseUrlValidForSeconds(Integer proofOfPurchaseUrlValidForSeconds) {
125 this.proofOfPurchaseUrlValidForSeconds = proofOfPurchaseUrlValidForSeconds;
128 public Object getProofOfPurchaseGeneratedAt() {
129 return proofOfPurchaseGeneratedAt;
132 public void setProofOfPurchaseGeneratedAt(Object proofOfPurchaseGeneratedAt) {
133 this.proofOfPurchaseGeneratedAt = proofOfPurchaseGeneratedAt;
136 public String getMacAddress() {
140 public void setMacAddress(String macAddress) {
141 this.macAddress = macAddress;
144 public String getCreatedAt() {
148 public void setCreatedAt(String createdAt) {
149 this.createdAt = createdAt;
152 public boolean discoveryInformationPresent() {
153 return serial != null && secretKey != null && name != null && model != null;