You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.1 KiB
57 lines
1.1 KiB
package dev.garrettmills.csx.matterlinkreboot;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
public class OutgoingMessage {
|
|
private String avatar;
|
|
private String event = "";
|
|
private String gateway;
|
|
private String text;
|
|
private String username;
|
|
|
|
public String toJSON() {
|
|
Gson gson = new Gson();
|
|
return gson.toJson(this);
|
|
}
|
|
|
|
public void setAvatar(String value) {
|
|
this.avatar = value;
|
|
}
|
|
|
|
public String getAvatar() {
|
|
return this.avatar;
|
|
}
|
|
|
|
public void setEvent(String value) {
|
|
this.event = value;
|
|
}
|
|
|
|
public String getEvent() {
|
|
return this.event;
|
|
}
|
|
|
|
public void setGateway(String value) {
|
|
this.gateway = value;
|
|
}
|
|
|
|
public String getGateway() {
|
|
return this.gateway;
|
|
}
|
|
|
|
public void setText(String value) {
|
|
this.text = value;
|
|
}
|
|
|
|
public String getText() {
|
|
return this.text;
|
|
}
|
|
|
|
public void setUsername(String value) {
|
|
this.username = value;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return this.username;
|
|
}
|
|
}
|