Skip to content

Commit 3284d80

Browse files
committed
Add missing constructor
1 parent 37b8e17 commit 3284d80

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • library/src/main/java/com/proxerme/library/connection/messenger/entity

library/src/main/java/com/proxerme/library/connection/messenger/entity/Conference.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ public Conference[] newArray(int size) {
5454
Conference() {
5555
}
5656

57+
public Conference(@NonNull String id, @NonNull String topic, @NonNull String customTopic,
58+
@IntRange(from = 2) int participantAmount, @NonNull String imageId,
59+
boolean isGroup, boolean isRead, long time,
60+
@IntRange(from = 0) int unreadMessageAmount,
61+
@NonNull String lastReadMessageId) {
62+
this.id = id;
63+
this.topic = topic;
64+
this.customTopic = customTopic;
65+
this.participantAmount = participantAmount;
66+
this.imageId = imageId;
67+
this.isGroup = isGroup;
68+
this.isRead = isRead;
69+
this.time = time;
70+
this.unreadMessageAmount = unreadMessageAmount;
71+
this.lastReadMessageId = lastReadMessageId;
72+
}
73+
5774
protected Conference(Parcel in) {
5875
this.lastReadMessageId = in.readString();
5976
this.imageId = in.readString();

0 commit comments

Comments
 (0)