23 řádky
Žádný EOL
375 B
Java
23 řádky
Žádný EOL
375 B
Java
package chat;
|
|
|
|
import java.io.*;
|
|
import java.util.*;
|
|
|
|
public class Message extends Notification {
|
|
private String text;
|
|
|
|
Message (User in_author, String in_text, Boolean in_redirected)
|
|
{
|
|
author = in_author;
|
|
text = in_text;
|
|
redirected = in_redirected;
|
|
}
|
|
public void setText(String new_text)
|
|
{
|
|
text = new_text;
|
|
}
|
|
public String getText()
|
|
{
|
|
return text;
|
|
}
|
|
} |