| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import 'package:json_annotation/json_annotation.dart';
- part 'talks.g.dart';
- @JsonSerializable()
- class TalkBean {
- @JsonKey(name: 'id')
- late final String id;
- @JsonKey(name: 'taskId')
- String? taskId;
- @JsonKey(name: 'ssid')
- String? ssid;
- @JsonKey(name: 'audioUrl')
- String? audioUrl;
- @JsonKey(name: 'duration')
- double? duration;
- @JsonKey(name: 'characters')
- int? characters;
- @JsonKey(name: 'status')
- int? status;
- @JsonKey(name: 'title')
- String? title;
- @JsonKey(name: 'summary')
- String? summary;
- @JsonKey(name: 'createTime')
- String? createTime;
- @JsonKey(name: 'example')
- bool? isExample;
- @JsonKey(name: 'oversizeFile')
- bool? oversizeFile;
- TalkBean(
- {required this.id,
- this.taskId,
- this.ssid,
- this.audioUrl,
- this.duration,
- this.characters,
- this.status,
- this.title,
- this.summary,
- this.createTime,
- this.isExample,
- this.oversizeFile});
- factory TalkBean.fromJson(Map<String, dynamic> json) =>
- _$TalkBeanFromJson(json);
- }
- class TalkStatus {
- TalkStatus._();
- //(0等待生成 1生成中,都处于生成中) 2成功 3失败 4未分析
- static int analysing = 0;
- static int waitAnalysis = 1;
- static int analysisSuccess = 2;
- static int analysisFail = 3;
- static int notAnalysis = 4;
- }
|