SendMessageParams constructor

SendMessageParams({
  1. required int channelId,
  2. required String body,
  3. required Map<String, dynamic> context,
  4. List<int> attachmentIds = const [],
})

Implementation

factory SendMessageParams({
  required int channelId,
  required String body,
  required Map<String, dynamic> context,
  List<int> attachmentIds = const [],
}) =>
    SendMessageParams._(
      context: context,
      postData: SendMessagePostData(
        attachmentIds: attachmentIds,
        attachmentTokens: [],
        body: body,
        messageType: 'comment',
        partnerIds: [],
        subtypeXmlid: 'mail.mt_comment',
      ),
      threadId: channelId,
      threadModel: 'mail.channel',
    );