Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created May 14, 2019 22:03
Show Gist options
  • Save john-nash-rs/4225b46eeb448a9252977d75819fc56e to your computer and use it in GitHub Desktop.
Save john-nash-rs/4225b46eeb448a9252977d75819fc56e to your computer and use it in GitHub Desktop.
package com.nulpointerexception.npechatroom;
public class Message {
public enum MessageType {
CHAT, JOIN, LEAVE
}
private MessageType messageType;
private String content;
private String sender;
public MessageType getType() {
return messageType;
}
public void setType(MessageType messageType) {
this.messageType = messageType;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getSender() {
return sender;
}
public void setSender(String sender) {
this.sender = sender;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment