Client1 funktioniert. Message modifiziert.
This commit is contained in:
parent
fcb9dc9b5e
commit
59ed34c94a
2 changed files with 170 additions and 36 deletions
|
@ -26,5 +26,20 @@ public class Message implements Serializable {
|
|||
+ ", message=" + message;
|
||||
//+ ", time=" + date;
|
||||
}
|
||||
|
||||
public boolean exit() {
|
||||
if(message.equalsIgnoreCase("exit")){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue