Created
May 14, 2019 22:03
-
-
Save john-nash-rs/4225b46eeb448a9252977d75819fc56e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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