You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
836 B
Dart
25 lines
836 B
Dart
|
2 years ago
|
import 'package:fluffychat/pangea/choreographer/controllers/it_controller.dart';
|
||
|
|
|
||
|
|
class MlController {
|
||
|
|
final ITController controller;
|
||
|
|
MlController(this.controller);
|
||
|
|
|
||
|
|
// sendPayloads(String message, String messageId) async {
|
||
|
|
// final MessageServiceModel serviceModel = MessageServiceModel(
|
||
|
|
// classId: controller.state!.classId,
|
||
|
|
// roomId: controller.state!.roomId,
|
||
|
|
// message: message.toString(),
|
||
|
|
// messageId: messageId.toString(),
|
||
|
|
// payloadIds: controller.state!.payLoadIds,
|
||
|
|
// userId: controller.state!.userId!,
|
||
|
|
// l1Lang: controller.state!.sourceLangCode,
|
||
|
|
// l2Lang: controller.state!.targetLangCode!,
|
||
|
|
// );
|
||
|
|
// try {
|
||
|
|
// await MessageServiceRepo.sendPayloads(serviceModel);
|
||
|
|
// } catch (err) {
|
||
|
|
// debugPrint('$err in sendPayloads');
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
}
|