reportUserOrMessages static method

Future<void> reportUserOrMessages({
  1. required String jid,
  2. required String type,
  3. String messageId = "",
  4. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Reports a user or messages.

This method reports a user or specific messages of the specified JID.

Params:

  • jid : The JID of the user or messages to be reported.
  • type : The type of report (e.g., user, message).
  • messageId : The ID of the message to be reported (optional).

Returns:

  • flyCallBack : A callback function that is called with the response.

Usage example:

Mirrorfly.reportUserOrMessages(
  jid: jid,
  type: type,
  messageId: messageId,
  flyCallBack: (response) {
    // Handle the response
    print("User or messages reported: $response");
  },
);

Implementation

static Future<void> reportUserOrMessages(
    {required String jid,
    required String type,
    String messageId = "",
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .reportUserOrMessages(jid, type, messageId, flyCallBack);
}