]> git.basschouten.com Git - openhab-addons.git/blob
d60befaa7fa62a865aff0d2845cdd3b208462fbc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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.webexteams.internal.api;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * a <code>Message</code> that is sent or received through the API.
20  * 
21  * @author Tom Deckers - Initial contribution
22  */
23 @NonNullByDefault
24 public class Message {
25     private @Nullable String id;
26     private @Nullable String roomId;
27     private @Nullable String toPersonEmail;
28     private @Nullable String text;
29     private @Nullable String markdown;
30     private @Nullable String file;
31
32     @Nullable
33     public String getId() {
34         return id;
35     }
36
37     public void setId(String id) {
38         this.id = id;
39     }
40
41     @Nullable
42     public String getRoomId() {
43         return roomId;
44     }
45
46     public void setRoomId(String roomId) {
47         this.roomId = roomId;
48     }
49
50     @Nullable
51     public String getToPersonEmail() {
52         return toPersonEmail;
53     }
54
55     public void setToPersonEmail(String toPersonEmail) {
56         this.toPersonEmail = toPersonEmail;
57     }
58
59     @Nullable
60     public String getText() {
61         return text;
62     }
63
64     public void setText(String text) {
65         this.text = text;
66     }
67
68     @Nullable
69     public String getMarkdown() {
70         return markdown;
71     }
72
73     public void setMarkdown(String markdown) {
74         this.markdown = markdown;
75     }
76
77     @Nullable
78     public String getFile() {
79         return file;
80     }
81
82     public void setFile(String file) {
83         this.file = file;
84     }
85 }