No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Message.java 620B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package chat;
  2. import java.io.*;
  3. import java.util.*;
  4. public class Message implements Serializable{
  5. private String text;
  6. private String author;
  7. private Boolean redirected;
  8. public Message(String in_author, String in_text, Boolean in_redirected)
  9. {
  10. text = in_text;
  11. author = in_author;
  12. redirected = in_redirected;
  13. }
  14. public void setText(String new_text)
  15. {
  16. text = new_text;
  17. }
  18. public String getText()
  19. {
  20. return text;
  21. }
  22. public void setAuthor(String new_author)
  23. {
  24. author = new_author;
  25. }
  26. public String getAuthor()
  27. {
  28. return author;
  29. }
  30. public Boolean isRedirected()
  31. {
  32. return redirected;
  33. }
  34. }