callBefore static method

Future<DataResult> callBefore(
  1. String? anchorId,
  2. String? callId,
  3. int? type
)

通话前置检测

Implementation

static Future<DataResult> callBefore(
    String? anchorId, String? callId, int? type) async {
  Map other = {'userId': anchorId, 'callId': callId, 'callType': type};
  var res = await BaseDao.fromBaseEncrypt(other, Address.callBefore());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}