28 lines
485 B
Java
28 lines
485 B
Java
package com.baeldung.websockets;
|
|
|
|
public class OutputMessage {
|
|
|
|
private String from;
|
|
private String text;
|
|
private String time;
|
|
|
|
public OutputMessage(final String from, final String text, final String time) {
|
|
|
|
this.from = from;
|
|
this.text = text;
|
|
this.time = time;
|
|
}
|
|
|
|
public String getText() {
|
|
return text;
|
|
}
|
|
|
|
public String getTime() {
|
|
return time;
|
|
}
|
|
|
|
public String getFrom() {
|
|
return from;
|
|
}
|
|
}
|