|
@@ -611,6 +611,45 @@ class StudentInfoDTO {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class ScreenSharingChannelDTO {
|
|
|
+ int rtcRoomId;
|
|
|
+ int sdkAppId;
|
|
|
+ String? userCode;
|
|
|
+ String? userSign;
|
|
|
+ LiveDataDTO? liveData;
|
|
|
+
|
|
|
+ ScreenSharingChannelDTO({
|
|
|
+ this.rtcRoomId = 0,
|
|
|
+ this.sdkAppId = 0,
|
|
|
+ this.userCode,
|
|
|
+ this.userSign,
|
|
|
+ this.liveData,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory ScreenSharingChannelDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ScreenSharingChannelDTO(
|
|
|
+ rtcRoomId: map['RtcRoomId'],
|
|
|
+ sdkAppId: map['SdkAppId'],
|
|
|
+ userCode: map['UserCode'],
|
|
|
+ userSign: map['UserSign'],
|
|
|
+ liveData: map['LiveData'] != null ? LiveDataDTO.fromJson(map['LiveData']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ map['RtcRoomId'] = rtcRoomId;
|
|
|
+ map['SdkAppId'] = sdkAppId;
|
|
|
+ if(userCode != null)
|
|
|
+ map['UserCode'] = userCode;
|
|
|
+ if(userSign != null)
|
|
|
+ map['UserSign'] = userSign;
|
|
|
+ if(liveData != null)
|
|
|
+ map['LiveData'] = liveData;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class BaseCourseInfoDTO {
|
|
|
String? code;
|
|
|
String? name;
|
|
@@ -648,6 +687,7 @@ class BaseCourseInfoDTO {
|
|
|
String? defaultVideoToken;
|
|
|
LiveDataDTO? courseChannel;
|
|
|
LiveDataDTO? othersScreenSharingChannel;
|
|
|
+ ScreenSharingChannelDTO? rtcScreenSharingChannel;
|
|
|
|
|
|
BaseCourseInfoDTO({
|
|
|
this.code,
|
|
@@ -686,6 +726,7 @@ class BaseCourseInfoDTO {
|
|
|
this.defaultVideoToken,
|
|
|
this.courseChannel,
|
|
|
this.othersScreenSharingChannel,
|
|
|
+ this.rtcScreenSharingChannel,
|
|
|
});
|
|
|
|
|
|
factory BaseCourseInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
@@ -726,6 +767,7 @@ class BaseCourseInfoDTO {
|
|
|
defaultVideoToken: map['DefaultVideoToken'],
|
|
|
courseChannel: map['CourseChannel'] != null ? LiveDataDTO.fromJson(map['CourseChannel']) : null,
|
|
|
othersScreenSharingChannel: map['OthersScreenSharingChannel'] != null ? LiveDataDTO.fromJson(map['OthersScreenSharingChannel']) : null,
|
|
|
+ rtcScreenSharingChannel: map['RtcScreenSharingChannel'] != null ? ScreenSharingChannelDTO.fromJson(map['RtcScreenSharingChannel']) : null,
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -790,6 +832,8 @@ class BaseCourseInfoDTO {
|
|
|
map['CourseChannel'] = courseChannel;
|
|
|
if(othersScreenSharingChannel != null)
|
|
|
map['OthersScreenSharingChannel'] = othersScreenSharingChannel;
|
|
|
+ if(rtcScreenSharingChannel != null)
|
|
|
+ map['RtcScreenSharingChannel'] = rtcScreenSharingChannel;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1028,6 +1072,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
String? defaultVideoToken,
|
|
|
LiveDataDTO? courseChannel,
|
|
|
LiveDataDTO? othersScreenSharingChannel,
|
|
|
+ ScreenSharingChannelDTO? rtcScreenSharingChannel,
|
|
|
}) : super(
|
|
|
code: code,
|
|
|
name: name,
|
|
@@ -1065,6 +1110,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
defaultVideoToken: defaultVideoToken,
|
|
|
courseChannel: courseChannel,
|
|
|
othersScreenSharingChannel: othersScreenSharingChannel,
|
|
|
+ rtcScreenSharingChannel: rtcScreenSharingChannel,
|
|
|
);
|
|
|
|
|
|
factory CourseInfoDetailDTO.fromJson(Map<String, dynamic> map) {
|
|
@@ -1115,6 +1161,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
defaultVideoToken: map['DefaultVideoToken'],
|
|
|
courseChannel: map['CourseChannel'] != null ? LiveDataDTO.fromJson(map['CourseChannel']) : null,
|
|
|
othersScreenSharingChannel: map['OthersScreenSharingChannel'] != null ? LiveDataDTO.fromJson(map['OthersScreenSharingChannel']) : null,
|
|
|
+ rtcScreenSharingChannel: map['RtcScreenSharingChannel'] != null ? ScreenSharingChannelDTO.fromJson(map['RtcScreenSharingChannel']) : null,
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -2521,6 +2568,7 @@ class InitiateLiveCourseResult extends LiveCourseBaseResult{
|
|
|
List<LiveCourseMember >? memberLiveDatas;
|
|
|
LiveDataDTO? courseChannel;
|
|
|
LiveDataDTO? othersScreenSharingChannel;
|
|
|
+ ScreenSharingChannelDTO? rtcScreenSharingChannel;
|
|
|
|
|
|
InitiateLiveCourseResult({
|
|
|
this.initiatorCode,
|
|
@@ -2532,6 +2580,7 @@ class InitiateLiveCourseResult extends LiveCourseBaseResult{
|
|
|
this.memberLiveDatas,
|
|
|
this.courseChannel,
|
|
|
this.othersScreenSharingChannel,
|
|
|
+ this.rtcScreenSharingChannel,
|
|
|
String? courseCode,
|
|
|
}) : super(
|
|
|
courseCode: courseCode,
|
|
@@ -2548,6 +2597,7 @@ class InitiateLiveCourseResult extends LiveCourseBaseResult{
|
|
|
memberLiveDatas: map['MemberLiveDatas'] != null ? (map['MemberLiveDatas'] as List).map((e)=>LiveCourseMember.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
courseChannel: map['CourseChannel'] != null ? LiveDataDTO.fromJson(map['CourseChannel']) : null,
|
|
|
othersScreenSharingChannel: map['OthersScreenSharingChannel'] != null ? LiveDataDTO.fromJson(map['OthersScreenSharingChannel']) : null,
|
|
|
+ rtcScreenSharingChannel: map['RtcScreenSharingChannel'] != null ? ScreenSharingChannelDTO.fromJson(map['RtcScreenSharingChannel']) : null,
|
|
|
courseCode: map['CourseCode'],
|
|
|
);
|
|
|
}
|
|
@@ -2568,6 +2618,8 @@ class InitiateLiveCourseResult extends LiveCourseBaseResult{
|
|
|
map['CourseChannel'] = courseChannel;
|
|
|
if(othersScreenSharingChannel != null)
|
|
|
map['OthersScreenSharingChannel'] = othersScreenSharingChannel;
|
|
|
+ if(rtcScreenSharingChannel != null)
|
|
|
+ map['RtcScreenSharingChannel'] = rtcScreenSharingChannel;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -2609,6 +2661,7 @@ class JoinLiveCourseResult extends LiveCourseBaseResult{
|
|
|
LiveDataDTO? courseChannel;
|
|
|
ShareInfoDTO? shareInfo;
|
|
|
LiveDataDTO? othersScreenSharingChannel;
|
|
|
+ ScreenSharingChannelDTO? rtcScreenSharingChannel;
|
|
|
|
|
|
JoinLiveCourseResult({
|
|
|
this.userCode,
|
|
@@ -2622,6 +2675,7 @@ class JoinLiveCourseResult extends LiveCourseBaseResult{
|
|
|
this.courseChannel,
|
|
|
this.shareInfo,
|
|
|
this.othersScreenSharingChannel,
|
|
|
+ this.rtcScreenSharingChannel,
|
|
|
String? courseCode,
|
|
|
}) : super(
|
|
|
courseCode: courseCode,
|
|
@@ -2640,6 +2694,7 @@ class JoinLiveCourseResult extends LiveCourseBaseResult{
|
|
|
courseChannel: map['CourseChannel'] != null ? LiveDataDTO.fromJson(map['CourseChannel']) : null,
|
|
|
shareInfo: map['ShareInfo'] != null ? ShareInfoDTO.fromJson(map['ShareInfo']) : null,
|
|
|
othersScreenSharingChannel: map['OthersScreenSharingChannel'] != null ? LiveDataDTO.fromJson(map['OthersScreenSharingChannel']) : null,
|
|
|
+ rtcScreenSharingChannel: map['RtcScreenSharingChannel'] != null ? ScreenSharingChannelDTO.fromJson(map['RtcScreenSharingChannel']) : null,
|
|
|
courseCode: map['CourseCode'],
|
|
|
);
|
|
|
}
|
|
@@ -2664,6 +2719,8 @@ class JoinLiveCourseResult extends LiveCourseBaseResult{
|
|
|
map['ShareInfo'] = shareInfo;
|
|
|
if(othersScreenSharingChannel != null)
|
|
|
map['OthersScreenSharingChannel'] = othersScreenSharingChannel;
|
|
|
+ if(rtcScreenSharingChannel != null)
|
|
|
+ map['RtcScreenSharingChannel'] = rtcScreenSharingChannel;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3762,4 +3819,38 @@ class FindMyOrganizationExpertsRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class SendLiveInteractiveBoardDataRequest extends TokenRequest{
|
|
|
+ String? roomId;
|
|
|
+ bool isClear;
|
|
|
+ String? boardData;
|
|
|
+
|
|
|
+ SendLiveInteractiveBoardDataRequest({
|
|
|
+ this.roomId,
|
|
|
+ this.isClear = false,
|
|
|
+ this.boardData,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory SendLiveInteractiveBoardDataRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return SendLiveInteractiveBoardDataRequest(
|
|
|
+ roomId: map['RoomId'],
|
|
|
+ isClear: map['IsClear'],
|
|
|
+ boardData: map['BoardData'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(roomId != null)
|
|
|
+ map['RoomId'] = roomId;
|
|
|
+ map['IsClear'] = isClear;
|
|
|
+ if(boardData != null)
|
|
|
+ map['BoardData'] = boardData;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|