Bugfix
parent
6367b4d438
commit
88c6cbe664
|
@ -14,7 +14,7 @@ public class User {
|
|||
private final String username; // Benutzername (final, da unveränderlich)
|
||||
private boolean isOnline; // Online-Status des Benutzers
|
||||
private UserInfo userInfo; // Statusinformation des Benutzers
|
||||
private UserContacts userContacts; // Kontaktliste des Benutzers
|
||||
private UserContact userContacts; // Kontaktliste des Benutzers
|
||||
private UserChatRoom chatRoom; // Verwaltung der Chaträume des Benutzers
|
||||
private UserGruppenRoom gruppenRoom; // Verwaltung der Gruppenmitgliedschaften
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class User {
|
|||
this.username = username;
|
||||
this.isOnline = true; // Standardmäßig online
|
||||
this.userInfo = UserInfo.VERFÜGBAR; // Standard-Status "verfügbar"
|
||||
this.userContacts = new UserContacts(); // Initialisiert leere Kontaktliste
|
||||
this.userContacts = new UserContact(); // Initialisiert leere Kontaktliste
|
||||
this.chatRoom = new UserChatRoom(); // Initialisiert Chatraum-Verwaltung
|
||||
this.gruppenRoom = new UserGruppenRoom(); // Initialisiert Gruppen-Verwaltung
|
||||
}
|
||||
|
@ -91,9 +91,9 @@ public class User {
|
|||
/**
|
||||
* Gibt die Kontaktliste des Benutzers zurück.
|
||||
*
|
||||
* @return UserContacts-Objekt mit allen Kontakten
|
||||
* @return UserContact-Objekt mit allen Kontakten
|
||||
*/
|
||||
public UserContacts getUserContacts() {
|
||||
public UserContact getUserContacts() {
|
||||
return userContacts;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@ import java.util.Objects;
|
|||
* Verwaltet die Kontaktliste eines Benutzers.
|
||||
* Bietet Funktionen zum Hinzufügen, Entfernen und Verwalten von Kontakten.
|
||||
*/
|
||||
public class UserContacts {
|
||||
public class UserContact {
|
||||
private List<User> contacts; // Liste aller Kontakte des Benutzers
|
||||
|
||||
/**
|
||||
* Konstruktor für UserContacts.
|
||||
* Konstruktor für UserContact.
|
||||
* Initialisiert eine leere Kontaktliste.
|
||||
*/
|
||||
public UserContacts() {
|
||||
public UserContact() {
|
||||
this.contacts = new ArrayList<>();
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package domain;
|
||||
|
||||
public class UserGruppen {
|
||||
|
||||
}
|
Loading…
Reference in New Issue