Create group avd channel in UI

This commit is contained in:
2025-09-04 01:26:33 +03:30
parent 0a24d7ed1a
commit a18cb15bda
7 changed files with 709 additions and 409 deletions
@@ -54,6 +54,15 @@ public class ChatEntry {
}
public ChatEntry(UUID internalId, String type, String name, String displayId) {
this.internalId = internalId;
this.type = type;
this.displayId = displayId;
this.name = name;
}
public boolean isOwner() {
return isOwner;
}
@@ -74,6 +83,7 @@ public class ChatEntry {
return internalId;
}
public String getDisplayId() {
return displayId;
}
@@ -180,4 +190,21 @@ public class ChatEntry {
this.lastMessageTime = t;
}
public static ChatEntry fromServer(UUID internalId,
String type,
String name,
String displayId,
String imageUrl,
boolean isOwner,
boolean isAdmin) {
ChatEntry e = new ChatEntry(internalId, type, name, displayId); // اگر سازنده‌ات فرق دارد، مطابق آن بساز
e.setImageUrl(imageUrl);
e.setOwner(isOwner);
e.setAdmin(isAdmin);
return e;
}
}