com.github.masahitojp.botan.message.BotanMessageSimple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of botan-core Show documentation
Show all versions of botan-core Show documentation
tiny chat bot framework for Java SE 8.(like a Hubot)
package com.github.masahitojp.botan.message;
import lombok.Data;
@Data
public class BotanMessageSimple {
private final String body;
private final String from;
private final String fromName;
private final String to;
private final int type;
public BotanMessageSimple(String body) {
this.body = body;
this.from = "";
this.fromName = "";
this.to = "";
this.type = -1;
}
public BotanMessageSimple(String body, String room) {
this.body = body;
this.from = "";
this.fromName = "";
this.to = room;
this.type = -1;
}
public BotanMessageSimple(String body, String from, String fromName, String to, int type) {
this.body = body;
this.from = from;
this.fromName = fromName;
this.to = to;
this.type = type;
}
}