callFail static method

Future<DataResult> callFail(
  1. String? userId,
  2. String callId,
  3. String type, {
  4. String? net,
})

通话上报

Implementation

static Future<DataResult> callFail(String? userId, String callId, String type,
    {String? net}) async {
  Map other = {
    'userId': userId,
    'callId': callId,
    'type': type,
    'network': net
  };
  var res = await BaseDao.fromBaseEncrypt(other, VideoUrl.callFail());
  if (res.result) {
    var entity = VideoEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}