]> git.basschouten.com Git - openhab-addons.git/blob
c8f5e1c970fa6b92dd1e7cbbbb4a3230f680e2d8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.gardena.internal.model;
14
15 import org.apache.commons.lang.builder.ToStringBuilder;
16 import org.apache.commons.lang.builder.ToStringStyle;
17
18 /**
19  * Represents a Gardena error.
20  *
21  * @author Gerhard Riegler - Initial contribution
22  */
23 public class Error {
24
25     private String id;
26     private String status;
27     private String title;
28     private String detail;
29
30     /**
31      * Returns the id of the error.
32      */
33     public String getId() {
34         return id;
35     }
36
37     /**
38      * Returns the status of the error.
39      */
40     public String getStatus() {
41         return status;
42     }
43
44     /**
45      * Returns the title of the error.
46      */
47     public String getTitle() {
48         return title;
49     }
50
51     /**
52      * Returns the detail of the error.
53      */
54     public String getDetail() {
55         return detail;
56     }
57
58     @Override
59     public String toString() {
60         return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).append("status", status)
61                 .append("title", title).append("detail", detail).toString();
62     }
63 }