123456789101112131415161718192021222324252627282930313233343536373839 |
- package chat;
-
- import java.io.*;
- import java.util.*;
-
- public class Message implements Serializable{
-
- private String text;
- private String author;
- private Boolean redirected;
-
- public Message(String in_author, String in_text, Boolean in_redirected)
- {
- text = in_text;
- author = in_author;
- redirected = in_redirected;
- }
- public void setText(String new_text)
- {
- text = new_text;
- }
- public String getText()
- {
- return text;
- }
- public void setAuthor(String new_author)
- {
- author = new_author;
- }
- public String getAuthor()
- {
- return author;
- }
- public Boolean isRedirected()
- {
- return redirected;
- }
- }
|