sendConfirmAnswerMsgToCallee method

void sendConfirmAnswerMsgToCallee(
  1. String userId,
  2. String callId,
  3. String result,
  4. String devId,
)

Implementation

void sendConfirmAnswerMsgToCallee(
    String userId, String callId, String result, String devId) async {
  ChatMessage msg = ChatMessage.createCmdSendMessage(
    targetId: userId,
    action: "rtcCall",
  );

  Map attributes = {
    kMsgType: kMsgTypeValue,
    kAction: kConfirmCalleeAction,
    kCallId: callId,
    kCallerDevId: model.curDevId,
    kCalleeDevId: devId,
    kCallResult: result,
    kTs: ts,
  };
  msg.attributes = attributes;
  ChatClient.getInstance.chatManager.sendMessage(msg);
  chatLog("sendConfirmAnswerMsgToCallee", msg);
}