matchSuccess static method

Future<DataResult> matchSuccess(
  1. String? anchorId,
  2. String callId,
  3. String? channelId,
  4. List? costInfo,
)

匹配成功开始

Implementation

static Future<DataResult> matchSuccess(String? anchorId, String callId,
    String? channelId, List? costInfo) async {
  Map other = {
    'userId': anchorId,
    'callId': callId,
    'houseId': channelId,
    'costInfo': costInfo
  };
  var res = await BaseDao.fromBaseJson(other, VideoUrl.matchSuccess());
  if (res.result) {
    var entity = VideoEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}