2 * Copyright (c) 2010-2024 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.pushbullet.internal.model;
15 import com.google.gson.annotations.SerializedName;
18 * This class represents errors in the response fetched from the API.
20 * @author Hakan Tandogan - Initial contribution
21 * @author Hakan Tandogan - Migrated from openHAB 1 action with the same name
23 public class PushError {
25 @SerializedName("type")
28 @SerializedName("message")
29 private String message;
31 @SerializedName("param")
34 @SerializedName("cat")
37 public String getType() {
41 public void setType(String type) {
45 public String getMessage() {
49 public void setMessage(String message) {
50 this.message = message;
53 public String getParam() {
57 public void setParam(String param) {
61 public String getCat() {
65 public void setCat(String cat) {
70 public String toString() {
71 return "PushError {" + "type='" + type + '\'' + ", message='" + message + '\'' + ", param='" + param + '\''
72 + ", cat='" + cat + '\'' + '}';