|
@@ -309,354 +309,15 @@ class ApplyCourseRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class BaseCourseAlbumDTO {
|
|
|
- String? code;
|
|
|
- String? name;
|
|
|
-
|
|
|
- BaseCourseAlbumDTO({
|
|
|
- this.code,
|
|
|
- this.name,
|
|
|
- });
|
|
|
-
|
|
|
- factory BaseCourseAlbumDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return BaseCourseAlbumDTO(
|
|
|
- code: map['Code'],
|
|
|
- name: map['Name'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(name != null)
|
|
|
- map['Name'] = name;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-enum CourseViewRangeEnum {
|
|
|
- All,
|
|
|
- Domestic,
|
|
|
- Overseas,
|
|
|
-}
|
|
|
-
|
|
|
-class BaseUserGroupDTO extends BaseDTO{
|
|
|
- String? code;
|
|
|
- String? name;
|
|
|
- String? shortCode;
|
|
|
-
|
|
|
- BaseUserGroupDTO({
|
|
|
- this.code,
|
|
|
- this.name,
|
|
|
- this.shortCode,
|
|
|
- DateTime? createTime,
|
|
|
- DateTime? updateTime,
|
|
|
- }) : super(
|
|
|
- createTime: createTime,
|
|
|
- updateTime: updateTime,
|
|
|
- );
|
|
|
-
|
|
|
- factory BaseUserGroupDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return BaseUserGroupDTO(
|
|
|
- code: map['Code'],
|
|
|
- name: map['Name'],
|
|
|
- shortCode: map['ShortCode'],
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(name != null)
|
|
|
- map['Name'] = name;
|
|
|
- if(shortCode != null)
|
|
|
- map['ShortCode'] = shortCode;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
- String? cover;
|
|
|
- String? introduction;
|
|
|
- List<String >? courseLabels;
|
|
|
- String? teacherCode;
|
|
|
- String? teacherName;
|
|
|
- CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
- CourseTypeEnum courseType;
|
|
|
- List<BaseUserGroupDTO >? userGroupList;
|
|
|
- List<BaseCourseAlbumDTO >? courseAlbumList;
|
|
|
-
|
|
|
- CourseCommonInfoDTO({
|
|
|
- this.cover,
|
|
|
- this.introduction,
|
|
|
- this.courseLabels,
|
|
|
- this.teacherCode,
|
|
|
- this.teacherName,
|
|
|
- this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
- this.courseType = CourseTypeEnum.Unknown,
|
|
|
- this.userGroupList,
|
|
|
- this.courseAlbumList,
|
|
|
- String? code,
|
|
|
- String? name,
|
|
|
- }) : super(
|
|
|
- code: code,
|
|
|
- name: name,
|
|
|
- );
|
|
|
-
|
|
|
- factory CourseCommonInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return CourseCommonInfoDTO(
|
|
|
- cover: map['Cover'],
|
|
|
- introduction: map['Introduction'],
|
|
|
- courseLabels: map['CourseLabels'] != null ? map['CourseLabels'].cast<String>().toList() : null,
|
|
|
- teacherCode: map['TeacherCode'],
|
|
|
- teacherName: map['TeacherName'],
|
|
|
- viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
- courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
- userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
- code: map['Code'],
|
|
|
- name: map['Name'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(cover != null)
|
|
|
- map['Cover'] = cover;
|
|
|
- if(introduction != null)
|
|
|
- map['Introduction'] = introduction;
|
|
|
- if(courseLabels != null)
|
|
|
- map['CourseLabels'] = courseLabels;
|
|
|
- if(teacherCode != null)
|
|
|
- map['TeacherCode'] = teacherCode;
|
|
|
- if(teacherName != null)
|
|
|
- map['TeacherName'] = teacherName;
|
|
|
- map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
- map['CourseType'] = courseType.index;
|
|
|
- if(userGroupList != null)
|
|
|
- map['UserGroupList'] = userGroupList;
|
|
|
- if(courseAlbumList != null)
|
|
|
- map['CourseAlbumList'] = courseAlbumList;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class FindCoursePagesRequest extends PageRequest{
|
|
|
- String? keyword;
|
|
|
- List<String >? courseLabels;
|
|
|
- DateTime? startTime;
|
|
|
- DateTime? endTime;
|
|
|
- String? teacherCode;
|
|
|
- String? languageCode;
|
|
|
-
|
|
|
- FindCoursePagesRequest({
|
|
|
- this.keyword,
|
|
|
- this.courseLabels,
|
|
|
- this.startTime,
|
|
|
- this.endTime,
|
|
|
- this.teacherCode,
|
|
|
- this.languageCode,
|
|
|
- int pageIndex = 0,
|
|
|
- int pageSize = 0,
|
|
|
- String? token,
|
|
|
- }) : super(
|
|
|
- pageIndex: pageIndex,
|
|
|
- pageSize: pageSize,
|
|
|
- token: token,
|
|
|
- );
|
|
|
-
|
|
|
- factory FindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return FindCoursePagesRequest(
|
|
|
- keyword: map['Keyword'],
|
|
|
- courseLabels: map['CourseLabels'] != null ? map['CourseLabels'].cast<String>().toList() : null,
|
|
|
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
- endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
|
|
|
- teacherCode: map['TeacherCode'],
|
|
|
- languageCode: map['LanguageCode'],
|
|
|
- pageIndex: map['PageIndex'],
|
|
|
- pageSize: map['PageSize'],
|
|
|
- token: map['Token'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(keyword != null)
|
|
|
- map['Keyword'] = keyword;
|
|
|
- if(courseLabels != null)
|
|
|
- map['CourseLabels'] = courseLabels;
|
|
|
- if(startTime != null)
|
|
|
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
|
|
|
- if(endTime != null)
|
|
|
- map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
|
|
|
- if(teacherCode != null)
|
|
|
- map['TeacherCode'] = teacherCode;
|
|
|
- if(languageCode != null)
|
|
|
- map['LanguageCode'] = languageCode;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class DeleteCourseByCodeRequest extends TokenRequest{
|
|
|
- String? code;
|
|
|
-
|
|
|
- DeleteCourseByCodeRequest({
|
|
|
- this.code,
|
|
|
- String? token,
|
|
|
- }) : super(
|
|
|
- token: token,
|
|
|
- );
|
|
|
-
|
|
|
- factory DeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return DeleteCourseByCodeRequest(
|
|
|
- code: map['Code'],
|
|
|
- token: map['Token'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-class UpdateCourseRequest extends TokenRequest{
|
|
|
- String? code;
|
|
|
- String? name;
|
|
|
- String? courseIntro;
|
|
|
- String? teacherCode;
|
|
|
- String? poster;
|
|
|
- DateTime? startTime;
|
|
|
- int duration;
|
|
|
- CourseTypeEnum courseType;
|
|
|
- CourseAudienceTypeEnum audienceType;
|
|
|
- String? coursewareToken;
|
|
|
- List<String >? caseLabelCodes;
|
|
|
- List<String >? courseLabelCodes;
|
|
|
- List<String >? userGroupCodes;
|
|
|
- double price;
|
|
|
- List<String >? courseVideoCodes;
|
|
|
- List<String >? bindExams;
|
|
|
- List<String >? assistants;
|
|
|
- List<String >? experts;
|
|
|
- bool isAgentCourse;
|
|
|
- List<String >? courseAlbumCodes;
|
|
|
- CourseAppearTypeEnum courseAppearType;
|
|
|
- List<String >? courseMaterialCodes;
|
|
|
-
|
|
|
- UpdateCourseRequest({
|
|
|
- this.code,
|
|
|
- this.name,
|
|
|
- this.courseIntro,
|
|
|
- this.teacherCode,
|
|
|
- this.poster,
|
|
|
- this.startTime,
|
|
|
- this.duration = 0,
|
|
|
- this.courseType = CourseTypeEnum.Unknown,
|
|
|
- this.audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
- this.coursewareToken,
|
|
|
- this.caseLabelCodes,
|
|
|
- this.courseLabelCodes,
|
|
|
- this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
- this.courseVideoCodes,
|
|
|
- this.bindExams,
|
|
|
- this.assistants,
|
|
|
- this.experts,
|
|
|
- this.isAgentCourse = false,
|
|
|
- this.courseAlbumCodes,
|
|
|
- this.courseAppearType = CourseAppearTypeEnum.Unknown,
|
|
|
- this.courseMaterialCodes,
|
|
|
- String? token,
|
|
|
- }) : super(
|
|
|
- token: token,
|
|
|
- );
|
|
|
-
|
|
|
- factory UpdateCourseRequest.fromJson(Map<String, dynamic> map) {
|
|
|
- return UpdateCourseRequest(
|
|
|
- code: map['Code'],
|
|
|
- name: map['Name'],
|
|
|
- courseIntro: map['CourseIntro'],
|
|
|
- teacherCode: map['TeacherCode'],
|
|
|
- poster: map['Poster'],
|
|
|
- startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
- duration: map['Duration'],
|
|
|
- courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
- audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
- coursewareToken: map['CoursewareToken'],
|
|
|
- caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
- courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
- userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
- courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
- bindExams: map['BindExams'] != null ? map['BindExams'].cast<String>().toList() : null,
|
|
|
- assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
|
|
|
- experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
|
|
|
- isAgentCourse: map['IsAgentCourse'],
|
|
|
- courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
|
|
|
- courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
|
|
|
- courseMaterialCodes: map['CourseMaterialCodes'] != null ? map['CourseMaterialCodes'].cast<String>().toList() : null,
|
|
|
- token: map['Token'],
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = super.toJson();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(name != null)
|
|
|
- map['Name'] = name;
|
|
|
- if(courseIntro != null)
|
|
|
- map['CourseIntro'] = courseIntro;
|
|
|
- if(teacherCode != null)
|
|
|
- map['TeacherCode'] = teacherCode;
|
|
|
- if(poster != null)
|
|
|
- map['Poster'] = poster;
|
|
|
- if(startTime != null)
|
|
|
- map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
|
|
|
- map['Duration'] = duration;
|
|
|
- map['CourseType'] = courseType.index;
|
|
|
- map['AudienceType'] = audienceType.index;
|
|
|
- if(coursewareToken != null)
|
|
|
- map['CoursewareToken'] = coursewareToken;
|
|
|
- if(caseLabelCodes != null)
|
|
|
- map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
- if(courseLabelCodes != null)
|
|
|
- map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
- if(userGroupCodes != null)
|
|
|
- map['UserGroupCodes'] = userGroupCodes;
|
|
|
- map['Price'] = price;
|
|
|
- if(courseVideoCodes != null)
|
|
|
- map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
- if(bindExams != null)
|
|
|
- map['BindExams'] = bindExams;
|
|
|
- if(assistants != null)
|
|
|
- map['Assistants'] = assistants;
|
|
|
- if(experts != null)
|
|
|
- map['Experts'] = experts;
|
|
|
- map['IsAgentCourse'] = isAgentCourse;
|
|
|
- if(courseAlbumCodes != null)
|
|
|
- map['CourseAlbumCodes'] = courseAlbumCodes;
|
|
|
- map['CourseAppearType'] = courseAppearType.index;
|
|
|
- if(courseMaterialCodes != null)
|
|
|
- map['CourseMaterialCodes'] = courseMaterialCodes;
|
|
|
- return map;
|
|
|
- }
|
|
|
+enum CourseViewRangeEnum {
|
|
|
+ All,
|
|
|
+ Domestic,
|
|
|
+ Overseas,
|
|
|
}
|
|
|
|
|
|
enum CourseExaminationTypeEnum {
|
|
|
Practice,
|
|
|
- Release,
|
|
|
+ Exam,
|
|
|
}
|
|
|
|
|
|
class BaseCourseExaminationDTO {
|
|
@@ -1115,6 +776,44 @@ class BaseCourseInfoDTO {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class BaseUserGroupDTO extends BaseDTO{
|
|
|
+ String? code;
|
|
|
+ String? name;
|
|
|
+ String? shortCode;
|
|
|
+
|
|
|
+ BaseUserGroupDTO({
|
|
|
+ this.code,
|
|
|
+ this.name,
|
|
|
+ this.shortCode,
|
|
|
+ DateTime? createTime,
|
|
|
+ DateTime? updateTime,
|
|
|
+ }) : super(
|
|
|
+ createTime: createTime,
|
|
|
+ updateTime: updateTime,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory BaseUserGroupDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return BaseUserGroupDTO(
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ shortCode: map['ShortCode'],
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ updateTime: map['UpdateTime'] != null ? DateTime.parse(map['UpdateTime']) : null,
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(shortCode != null)
|
|
|
+ map['ShortCode'] = shortCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
enum UploadFileTypeEnum {
|
|
|
Unknown,
|
|
|
EXE,
|
|
@@ -1226,6 +925,32 @@ class VideoInfoDTO {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class BaseCourseAlbumDTO {
|
|
|
+ String? code;
|
|
|
+ String? name;
|
|
|
+
|
|
|
+ BaseCourseAlbumDTO({
|
|
|
+ this.code,
|
|
|
+ this.name,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory BaseCourseAlbumDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return BaseCourseAlbumDTO(
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
List<StudentInfoDTO >? students;
|
|
|
List<BaseLabelInfoDTO >? caseLabels;
|
|
@@ -1233,6 +958,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
List<BaseUserGroupDTO >? userGroups;
|
|
|
List<VideoInfoDTO >? courseVideos;
|
|
|
List<VideoInfoDTO >? courseMaterials;
|
|
|
+ List<BaseCourseAlbumDTO >? courseAlbums;
|
|
|
bool needPay;
|
|
|
StudentCourseStatusEnum signCourseStatus;
|
|
|
bool isPay;
|
|
@@ -1244,6 +970,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
this.userGroups,
|
|
|
this.courseVideos,
|
|
|
this.courseMaterials,
|
|
|
+ this.courseAlbums,
|
|
|
this.needPay = false,
|
|
|
this.signCourseStatus = StudentCourseStatusEnum.All,
|
|
|
this.isPay = false,
|
|
@@ -1324,6 +1051,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
userGroups: map['UserGroups'] != null ? (map['UserGroups'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
courseVideos: map['CourseVideos'] != null ? (map['CourseVideos'] as List).map((e)=>VideoInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
courseMaterials: map['CourseMaterials'] != null ? (map['CourseMaterials'] as List).map((e)=>VideoInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ courseAlbums: map['CourseAlbums'] != null ? (map['CourseAlbums'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
needPay: map['NeedPay'],
|
|
|
signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
|
|
|
isPay: map['IsPay'],
|
|
@@ -1377,6 +1105,8 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
map['CourseVideos'] = courseVideos;
|
|
|
if(courseMaterials != null)
|
|
|
map['CourseMaterials'] = courseMaterials;
|
|
|
+ if(courseAlbums != null)
|
|
|
+ map['CourseAlbums'] = courseAlbums;
|
|
|
map['NeedPay'] = needPay;
|
|
|
map['SignCourseStatus'] = signCourseStatus.index;
|
|
|
map['IsPay'] = isPay;
|
|
@@ -1384,6 +1114,211 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class FindCoursePagesRequest extends PageRequest{
|
|
|
+ String? keyword;
|
|
|
+ List<String >? courseLabels;
|
|
|
+ DateTime? startTime;
|
|
|
+ DateTime? endTime;
|
|
|
+ String? teacherCode;
|
|
|
+ String? languageCode;
|
|
|
+
|
|
|
+ FindCoursePagesRequest({
|
|
|
+ this.keyword,
|
|
|
+ this.courseLabels,
|
|
|
+ this.startTime,
|
|
|
+ this.endTime,
|
|
|
+ this.teacherCode,
|
|
|
+ this.languageCode,
|
|
|
+ int pageIndex = 0,
|
|
|
+ int pageSize = 0,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ pageIndex: pageIndex,
|
|
|
+ pageSize: pageSize,
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory FindCoursePagesRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return FindCoursePagesRequest(
|
|
|
+ keyword: map['Keyword'],
|
|
|
+ courseLabels: map['CourseLabels'] != null ? map['CourseLabels'].cast<String>().toList() : null,
|
|
|
+ startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
+ endTime: map['EndTime'] != null ? DateTime.parse(map['EndTime']) : null,
|
|
|
+ teacherCode: map['TeacherCode'],
|
|
|
+ languageCode: map['LanguageCode'],
|
|
|
+ pageIndex: map['PageIndex'],
|
|
|
+ pageSize: map['PageSize'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(keyword != null)
|
|
|
+ map['Keyword'] = keyword;
|
|
|
+ if(courseLabels != null)
|
|
|
+ map['CourseLabels'] = courseLabels;
|
|
|
+ if(startTime != null)
|
|
|
+ map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
|
|
|
+ if(endTime != null)
|
|
|
+ map['EndTime'] = JsonRpcUtils.dateFormat(endTime!);
|
|
|
+ if(teacherCode != null)
|
|
|
+ map['TeacherCode'] = teacherCode;
|
|
|
+ if(languageCode != null)
|
|
|
+ map['LanguageCode'] = languageCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class DeleteCourseByCodeRequest extends TokenRequest{
|
|
|
+ String? code;
|
|
|
+
|
|
|
+ DeleteCourseByCodeRequest({
|
|
|
+ this.code,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory DeleteCourseByCodeRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return DeleteCourseByCodeRequest(
|
|
|
+ code: map['Code'],
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class UpdateCourseRequest extends TokenRequest{
|
|
|
+ String? code;
|
|
|
+ String? name;
|
|
|
+ String? courseIntro;
|
|
|
+ String? teacherCode;
|
|
|
+ String? poster;
|
|
|
+ DateTime? startTime;
|
|
|
+ int duration;
|
|
|
+ CourseTypeEnum courseType;
|
|
|
+ CourseAudienceTypeEnum audienceType;
|
|
|
+ String? coursewareToken;
|
|
|
+ List<String >? caseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ List<String >? userGroupCodes;
|
|
|
+ double price;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
+ List<String >? bindExams;
|
|
|
+ List<String >? assistants;
|
|
|
+ List<String >? experts;
|
|
|
+ bool isAgentCourse;
|
|
|
+ List<String >? courseAlbumCodes;
|
|
|
+ CourseAppearTypeEnum courseAppearType;
|
|
|
+ List<String >? courseMaterialCodes;
|
|
|
+
|
|
|
+ UpdateCourseRequest({
|
|
|
+ this.code,
|
|
|
+ this.name,
|
|
|
+ this.courseIntro,
|
|
|
+ this.teacherCode,
|
|
|
+ this.poster,
|
|
|
+ this.startTime,
|
|
|
+ this.duration = 0,
|
|
|
+ this.courseType = CourseTypeEnum.Unknown,
|
|
|
+ this.audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
+ this.coursewareToken,
|
|
|
+ this.caseLabelCodes,
|
|
|
+ this.courseLabelCodes,
|
|
|
+ this.userGroupCodes,
|
|
|
+ this.price = 0,
|
|
|
+ this.courseVideoCodes,
|
|
|
+ this.bindExams,
|
|
|
+ this.assistants,
|
|
|
+ this.experts,
|
|
|
+ this.isAgentCourse = false,
|
|
|
+ this.courseAlbumCodes,
|
|
|
+ this.courseAppearType = CourseAppearTypeEnum.Unknown,
|
|
|
+ this.courseMaterialCodes,
|
|
|
+ String? token,
|
|
|
+ }) : super(
|
|
|
+ token: token,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory UpdateCourseRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return UpdateCourseRequest(
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ courseIntro: map['CourseIntro'],
|
|
|
+ teacherCode: map['TeacherCode'],
|
|
|
+ poster: map['Poster'],
|
|
|
+ startTime: map['StartTime'] != null ? DateTime.parse(map['StartTime']) : null,
|
|
|
+ duration: map['Duration'],
|
|
|
+ courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
+ audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
+ coursewareToken: map['CoursewareToken'],
|
|
|
+ caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
+ price: double.parse(map['Price'].toString()),
|
|
|
+ courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
+ bindExams: map['BindExams'] != null ? map['BindExams'].cast<String>().toList() : null,
|
|
|
+ assistants: map['Assistants'] != null ? map['Assistants'].cast<String>().toList() : null,
|
|
|
+ experts: map['Experts'] != null ? map['Experts'].cast<String>().toList() : null,
|
|
|
+ isAgentCourse: map['IsAgentCourse'],
|
|
|
+ courseAlbumCodes: map['CourseAlbumCodes'] != null ? map['CourseAlbumCodes'].cast<String>().toList() : null,
|
|
|
+ courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
|
|
|
+ courseMaterialCodes: map['CourseMaterialCodes'] != null ? map['CourseMaterialCodes'].cast<String>().toList() : null,
|
|
|
+ token: map['Token'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(code != null)
|
|
|
+ map['Code'] = code;
|
|
|
+ if(name != null)
|
|
|
+ map['Name'] = name;
|
|
|
+ if(courseIntro != null)
|
|
|
+ map['CourseIntro'] = courseIntro;
|
|
|
+ if(teacherCode != null)
|
|
|
+ map['TeacherCode'] = teacherCode;
|
|
|
+ if(poster != null)
|
|
|
+ map['Poster'] = poster;
|
|
|
+ if(startTime != null)
|
|
|
+ map['StartTime'] = JsonRpcUtils.dateFormat(startTime!);
|
|
|
+ map['Duration'] = duration;
|
|
|
+ map['CourseType'] = courseType.index;
|
|
|
+ map['AudienceType'] = audienceType.index;
|
|
|
+ if(coursewareToken != null)
|
|
|
+ map['CoursewareToken'] = coursewareToken;
|
|
|
+ if(caseLabelCodes != null)
|
|
|
+ map['CaseLabelCodes'] = caseLabelCodes;
|
|
|
+ if(courseLabelCodes != null)
|
|
|
+ map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ if(userGroupCodes != null)
|
|
|
+ map['UserGroupCodes'] = userGroupCodes;
|
|
|
+ map['Price'] = price;
|
|
|
+ if(courseVideoCodes != null)
|
|
|
+ map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
+ if(bindExams != null)
|
|
|
+ map['BindExams'] = bindExams;
|
|
|
+ if(assistants != null)
|
|
|
+ map['Assistants'] = assistants;
|
|
|
+ if(experts != null)
|
|
|
+ map['Experts'] = experts;
|
|
|
+ map['IsAgentCourse'] = isAgentCourse;
|
|
|
+ if(courseAlbumCodes != null)
|
|
|
+ map['CourseAlbumCodes'] = courseAlbumCodes;
|
|
|
+ map['CourseAppearType'] = courseAppearType.index;
|
|
|
+ if(courseMaterialCodes != null)
|
|
|
+ map['CourseMaterialCodes'] = courseMaterialCodes;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class FindCourseByCodeRequest extends TokenRequest{
|
|
|
String? code;
|
|
|
String? languageCode;
|
|
@@ -1414,73 +1349,13 @@ class FindCourseByCodeRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class MyCoursePageDTO {
|
|
|
- String? code;
|
|
|
- String? courseOrAlbumCode;
|
|
|
- CourseAppearTypeEnum courseAppearType;
|
|
|
- CourseTypeEnum courseType;
|
|
|
- String? name;
|
|
|
- String? teacherName;
|
|
|
- List<String >? courseLabelNames;
|
|
|
- bool isPay;
|
|
|
- DateTime? createTime;
|
|
|
-
|
|
|
- MyCoursePageDTO({
|
|
|
- this.code,
|
|
|
- this.courseOrAlbumCode,
|
|
|
- this.courseAppearType = CourseAppearTypeEnum.Unknown,
|
|
|
- this.courseType = CourseTypeEnum.Unknown,
|
|
|
- this.name,
|
|
|
- this.teacherName,
|
|
|
- this.courseLabelNames,
|
|
|
- this.isPay = false,
|
|
|
- this.createTime,
|
|
|
- });
|
|
|
-
|
|
|
- factory MyCoursePageDTO.fromJson(Map<String, dynamic> map) {
|
|
|
- return MyCoursePageDTO(
|
|
|
- code: map['Code'],
|
|
|
- courseOrAlbumCode: map['CourseOrAlbumCode'],
|
|
|
- courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
|
|
|
- courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
- name: map['Name'],
|
|
|
- teacherName: map['TeacherName'],
|
|
|
- courseLabelNames: map['CourseLabelNames'] != null ? map['CourseLabelNames'].cast<String>().toList() : null,
|
|
|
- isPay: map['IsPay'],
|
|
|
- createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
- Map<String, dynamic> toJson() {
|
|
|
- final map = Map<String, dynamic>();
|
|
|
- if(code != null)
|
|
|
- map['Code'] = code;
|
|
|
- if(courseOrAlbumCode != null)
|
|
|
- map['CourseOrAlbumCode'] = courseOrAlbumCode;
|
|
|
- map['CourseAppearType'] = courseAppearType.index;
|
|
|
- map['CourseType'] = courseType.index;
|
|
|
- if(name != null)
|
|
|
- map['Name'] = name;
|
|
|
- if(teacherName != null)
|
|
|
- map['TeacherName'] = teacherName;
|
|
|
- if(courseLabelNames != null)
|
|
|
- map['CourseLabelNames'] = courseLabelNames;
|
|
|
- map['IsPay'] = isPay;
|
|
|
- if(createTime != null)
|
|
|
- map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
- return map;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
class FindMyCoursePagesRequest extends PageRequest{
|
|
|
String? keyword;
|
|
|
StudentCourseStatusEnum queryStatus;
|
|
|
- CourseAppearTypeEnum courseAppearType;
|
|
|
|
|
|
FindMyCoursePagesRequest({
|
|
|
this.keyword,
|
|
|
this.queryStatus = StudentCourseStatusEnum.All,
|
|
|
- this.courseAppearType = CourseAppearTypeEnum.Unknown,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -1494,7 +1369,6 @@ class FindMyCoursePagesRequest extends PageRequest{
|
|
|
return FindMyCoursePagesRequest(
|
|
|
keyword: map['Keyword'],
|
|
|
queryStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['QueryStatus']),
|
|
|
- courseAppearType: CourseAppearTypeEnum.values.firstWhere((e) => e.index == map['CourseAppearType']),
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -1506,7 +1380,80 @@ class FindMyCoursePagesRequest extends PageRequest{
|
|
|
if(keyword != null)
|
|
|
map['Keyword'] = keyword;
|
|
|
map['QueryStatus'] = queryStatus.index;
|
|
|
- map['CourseAppearType'] = courseAppearType.index;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class CourseAlbumDTO extends BaseCourseAlbumDTO{
|
|
|
+ String? cover;
|
|
|
+ List<String >? courseCodes;
|
|
|
+ String? introduction;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ String? teacherCode;
|
|
|
+ String? teacherName;
|
|
|
+ CourseViewRangeEnum viewRange;
|
|
|
+ double price;
|
|
|
+ DateTime? createTime;
|
|
|
+ int sort;
|
|
|
+ bool isStick;
|
|
|
+
|
|
|
+ CourseAlbumDTO({
|
|
|
+ this.cover,
|
|
|
+ this.courseCodes,
|
|
|
+ this.introduction,
|
|
|
+ this.courseLabelCodes,
|
|
|
+ this.teacherCode,
|
|
|
+ this.teacherName,
|
|
|
+ this.viewRange = CourseViewRangeEnum.All,
|
|
|
+ this.price = 0,
|
|
|
+ this.createTime,
|
|
|
+ this.sort = 0,
|
|
|
+ this.isStick = false,
|
|
|
+ String? code,
|
|
|
+ String? name,
|
|
|
+ }) : super(
|
|
|
+ code: code,
|
|
|
+ name: name,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory CourseAlbumDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return CourseAlbumDTO(
|
|
|
+ cover: map['Cover'],
|
|
|
+ courseCodes: map['CourseCodes'] != null ? map['CourseCodes'].cast<String>().toList() : null,
|
|
|
+ introduction: map['Introduction'],
|
|
|
+ courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
+ teacherCode: map['TeacherCode'],
|
|
|
+ teacherName: map['TeacherName'],
|
|
|
+ viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
+ price: double.parse(map['Price'].toString()),
|
|
|
+ createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
+ sort: map['Sort'],
|
|
|
+ isStick: map['IsStick'],
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(cover != null)
|
|
|
+ map['Cover'] = cover;
|
|
|
+ if(courseCodes != null)
|
|
|
+ map['CourseCodes'] = courseCodes;
|
|
|
+ if(introduction != null)
|
|
|
+ map['Introduction'] = introduction;
|
|
|
+ if(courseLabelCodes != null)
|
|
|
+ map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
+ if(teacherCode != null)
|
|
|
+ map['TeacherCode'] = teacherCode;
|
|
|
+ if(teacherName != null)
|
|
|
+ map['TeacherName'] = teacherName;
|
|
|
+ map['ViewRange'] = viewRange.index;
|
|
|
+ map['Price'] = price;
|
|
|
+ if(createTime != null)
|
|
|
+ map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
+ map['Sort'] = sort;
|
|
|
+ map['IsStick'] = isStick;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3256,6 +3203,84 @@ class DeleteCourseAlbumRequest {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
+ String? cover;
|
|
|
+ String? introduction;
|
|
|
+ List<String >? courseLabels;
|
|
|
+ String? teacherCode;
|
|
|
+ String? teacherName;
|
|
|
+ CourseViewRangeEnum viewRange;
|
|
|
+ double price;
|
|
|
+ CourseTypeEnum courseType;
|
|
|
+ List<BaseUserGroupDTO >? userGroupList;
|
|
|
+ List<BaseCourseAlbumDTO >? courseAlbumList;
|
|
|
+ StudentCourseStatusEnum signCourseStatus;
|
|
|
+ bool isPay;
|
|
|
+
|
|
|
+ CourseCommonInfoDTO({
|
|
|
+ this.cover,
|
|
|
+ this.introduction,
|
|
|
+ this.courseLabels,
|
|
|
+ this.teacherCode,
|
|
|
+ this.teacherName,
|
|
|
+ this.viewRange = CourseViewRangeEnum.All,
|
|
|
+ this.price = 0,
|
|
|
+ this.courseType = CourseTypeEnum.Unknown,
|
|
|
+ this.userGroupList,
|
|
|
+ this.courseAlbumList,
|
|
|
+ this.signCourseStatus = StudentCourseStatusEnum.All,
|
|
|
+ this.isPay = false,
|
|
|
+ String? code,
|
|
|
+ String? name,
|
|
|
+ }) : super(
|
|
|
+ code: code,
|
|
|
+ name: name,
|
|
|
+ );
|
|
|
+
|
|
|
+ factory CourseCommonInfoDTO.fromJson(Map<String, dynamic> map) {
|
|
|
+ return CourseCommonInfoDTO(
|
|
|
+ cover: map['Cover'],
|
|
|
+ introduction: map['Introduction'],
|
|
|
+ courseLabels: map['CourseLabels'] != null ? map['CourseLabels'].cast<String>().toList() : null,
|
|
|
+ teacherCode: map['TeacherCode'],
|
|
|
+ teacherName: map['TeacherName'],
|
|
|
+ viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
+ price: double.parse(map['Price'].toString()),
|
|
|
+ courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
+ userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
|
|
|
+ isPay: map['IsPay'],
|
|
|
+ code: map['Code'],
|
|
|
+ name: map['Name'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ if(cover != null)
|
|
|
+ map['Cover'] = cover;
|
|
|
+ if(introduction != null)
|
|
|
+ map['Introduction'] = introduction;
|
|
|
+ if(courseLabels != null)
|
|
|
+ map['CourseLabels'] = courseLabels;
|
|
|
+ if(teacherCode != null)
|
|
|
+ map['TeacherCode'] = teacherCode;
|
|
|
+ if(teacherName != null)
|
|
|
+ map['TeacherName'] = teacherName;
|
|
|
+ map['ViewRange'] = viewRange.index;
|
|
|
+ map['Price'] = price;
|
|
|
+ map['CourseType'] = courseType.index;
|
|
|
+ if(userGroupList != null)
|
|
|
+ map['UserGroupList'] = userGroupList;
|
|
|
+ if(courseAlbumList != null)
|
|
|
+ map['CourseAlbumList'] = courseAlbumList;
|
|
|
+ map['SignCourseStatus'] = signCourseStatus.index;
|
|
|
+ map['IsPay'] = isPay;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
List<CourseInfoDetailDTO >? courseInfos;
|
|
|
int studentCount;
|
|
@@ -3270,6 +3295,8 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
DateTime? createTime;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
|
+ StudentCourseStatusEnum signCourseStatus;
|
|
|
+ bool isPay;
|
|
|
|
|
|
CourseAlbumExtendDTO({
|
|
|
this.courseInfos,
|
|
@@ -3285,6 +3312,8 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
this.createTime,
|
|
|
this.sort = 0,
|
|
|
this.isStick = false,
|
|
|
+ this.signCourseStatus = StudentCourseStatusEnum.All,
|
|
|
+ this.isPay = false,
|
|
|
String? code,
|
|
|
String? name,
|
|
|
}) : super(
|
|
@@ -3307,6 +3336,8 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
sort: map['Sort'],
|
|
|
isStick: map['IsStick'],
|
|
|
+ signCourseStatus: StudentCourseStatusEnum.values.firstWhere((e) => e.index == map['SignCourseStatus']),
|
|
|
+ isPay: map['IsPay'],
|
|
|
code: map['Code'],
|
|
|
name: map['Name'],
|
|
|
);
|
|
@@ -3335,6 +3366,8 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
map['Sort'] = sort;
|
|
|
map['IsStick'] = isStick;
|
|
|
+ map['SignCourseStatus'] = signCourseStatus.index;
|
|
|
+ map['IsPay'] = isPay;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3603,4 +3636,38 @@ class GetUserPagesRequest extends PageRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+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;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|