callEnd static method
通话结束
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;
}