inviteInGroup method

Future<V2TimValueCallback<String>> inviteInGroup({
  1. required String groupID,
  2. required List<String> inviteeList,
  3. required String data,
  4. required int timeout,
  5. required bool onlineUserOnly,
})

Implementation

Future<V2TimValueCallback<String>> inviteInGroup({
  required String groupID,
  required List<String> inviteeList,
  required String data,
  required int timeout,
  required bool onlineUserOnly,
}) async {
  return V2TimValueCallback<String>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "inviteInGroup",
        buildParam(
          {
            "groupID": groupID,
            "inviteeList": inviteeList,
            "data": data,
            "timeout": timeout,
            "onlineUserOnly": onlineUserOnly
          },
        ),
      ),
    ),
  );
}