]> git.basschouten.com Git - openhab-addons.git/blob
a8c1504e7f324a93caf5ae4443039604b2cd778c
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2024 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.pushbullet.internal.model;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * This class represents errors in the response fetched from the API.
19  *
20  * @author Hakan Tandogan - Initial contribution
21  * @author Hakan Tandogan - Migrated from openHAB 1 action with the same name
22  */
23 public class PushError {
24
25     @SerializedName("type")
26     private String type;
27
28     @SerializedName("message")
29     private String message;
30
31     @SerializedName("param")
32     private String param;
33
34     @SerializedName("cat")
35     private String cat;
36
37     public String getType() {
38         return type;
39     }
40
41     public void setType(String type) {
42         this.type = type;
43     }
44
45     public String getMessage() {
46         return message;
47     }
48
49     public void setMessage(String message) {
50         this.message = message;
51     }
52
53     public String getParam() {
54         return param;
55     }
56
57     public void setParam(String param) {
58         this.param = param;
59     }
60
61     public String getCat() {
62         return cat;
63     }
64
65     public void setCat(String cat) {
66         this.cat = cat;
67     }
68
69     @Override
70     public String toString() {
71         return "PushError {" + "type='" + type + '\'' + ", message='" + message + '\'' + ", param='" + param + '\''
72                 + ", cat='" + cat + '\'' + '}';
73     }
74 }