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 375B

1234567891011121314151617181920212223
  1. package chat;
  2. import java.io.*;
  3. import java.util.*;
  4. public class Message extends Notification {
  5. private String text;
  6. Message (User in_author, String in_text, Boolean in_redirected)
  7. {
  8. author = in_author;
  9. text = in_text;
  10. redirected = in_redirected;
  11. }
  12. public void setText(String new_text)
  13. {
  14. text = new_text;
  15. }
  16. public String getText()
  17. {
  18. return text;
  19. }
  20. }