]> git.basschouten.com Git - openhab-addons.git/blob
e65bf82aacd6f71675d968ecce4fd9472b1d605a
[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 the push request sent to 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 Push {
24
25     @SerializedName("title")
26     private String title;
27
28     @SerializedName("body")
29     private String body;
30
31     @SerializedName("type")
32     private String type;
33
34     @SerializedName("email")
35     private String email;
36
37     @SerializedName("channel_tag")
38     private String channelTag;
39
40     public String getTitle() {
41         return title;
42     }
43
44     public void setTitle(String title) {
45         this.title = title;
46     }
47
48     public String getBody() {
49         return body;
50     }
51
52     public void setBody(String body) {
53         this.body = body;
54     }
55
56     public String getType() {
57         return type;
58     }
59
60     public void setType(String type) {
61         this.type = type;
62     }
63
64     public String getEmail() {
65         return email;
66     }
67
68     public void setEmail(String email) {
69         this.email = email;
70     }
71
72     public String getChannel() {
73         return channelTag;
74     }
75
76     public void setChannel(String channelTag) {
77         this.channelTag = channelTag;
78     }
79
80     @Override
81     public String toString() {
82         return "Push {" + "title='" + title + '\'' + ", body='" + body + '\'' + ", type='" + type + '\'' + ", email='"
83                 + email + '\'' + ", channelTag='" + channelTag + '\'' + '}';
84     }
85 }