会议事件添加时间戳
This commit is contained in:
@@ -10,4 +10,9 @@ public class ConferenceCreateEvent {
|
|||||||
public int bitrate;
|
public int bitrate;
|
||||||
public boolean advance;
|
public boolean advance;
|
||||||
public boolean recording;
|
public boolean recording;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferenceCreateEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,9 @@ package cn.wildfirechat.pojos;
|
|||||||
public class ConferenceDestroyEvent {
|
public class ConferenceDestroyEvent {
|
||||||
public String userId;
|
public String userId;
|
||||||
public String roomId;
|
public String roomId;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferenceDestroyEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,9 @@ public class ConferenceJoinEvent {
|
|||||||
public String userId;
|
public String userId;
|
||||||
public String roomId;
|
public String roomId;
|
||||||
public boolean screenSharing;
|
public boolean screenSharing;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferenceJoinEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,4 +6,9 @@ public class ConferenceLeaveEvent {
|
|||||||
public boolean rejoin;
|
public boolean rejoin;
|
||||||
public boolean kicked;
|
public boolean kicked;
|
||||||
public boolean screenSharing;
|
public boolean screenSharing;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferenceLeaveEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,4 +5,9 @@ public class ConferencePublishEvent {
|
|||||||
public boolean video;
|
public boolean video;
|
||||||
public String roomId;
|
public String roomId;
|
||||||
public boolean screenSharing;
|
public boolean screenSharing;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferencePublishEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,4 +4,9 @@ public class ConferenceUnpublishEvent {
|
|||||||
public String userId;
|
public String userId;
|
||||||
public String roomId;
|
public String roomId;
|
||||||
public boolean screenSharing;
|
public boolean screenSharing;
|
||||||
|
public long timestamp;
|
||||||
|
|
||||||
|
public ConferenceUnpublishEvent() {
|
||||||
|
timestamp = System.currentTimeMillis();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -300,18 +300,12 @@ public class Main {
|
|||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int limit = 5;
|
IMResult<OutputGetUserList> getUserListIMResult = UserAdmin.getAllUsers(100, 0);
|
||||||
for (int i = 0; i < 100; i++) {
|
if (getUserListIMResult != null && getUserListIMResult.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) {
|
||||||
IMResult<OutputGetUserList> getUserListIMResult = UserAdmin.getAllUsers(limit, i*limit);
|
System.out.println("getUserListIMResult success");
|
||||||
if (getUserListIMResult != null && getUserListIMResult.getErrorCode() == ErrorCode.ERROR_CODE_SUCCESS) {
|
} else {
|
||||||
System.out.println("getUserListIMResult success");
|
System.out.println("getUserListIMResult failure");
|
||||||
if(getUserListIMResult.getResult().userInfoList.size() < limit) {
|
System.exit(-1);
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
System.out.println("getUserListIMResult failure");
|
|
||||||
System.exit(-1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commercialServer) {
|
if (commercialServer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user