callEnd static method

Future<DataResult> callEnd(
  1. String? userId,
  2. String callId,
  3. int? time,
  4. int dropped,
)

通话结束

Implementation

static Future<DataResult> callEnd(
    String? userId, String callId, int? time, int dropped) async {
  Map other = {
    'userId': userId,
    'time': time,
    'status': dropped != 1 ? dropped : '',
    'callId': callId
  };
  var res = await BaseDao.fromBaseEncrypt(other, VideoUrl.callEnd());
  if (res.result) {
    var entity = VideoEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}