Create group avd channel in UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user