getAnchorVideoInfo static method

Future<DataResult> getAnchorVideoInfo(
  1. String? anchorUserId
)

Implementation

static Future<DataResult> getAnchorVideoInfo(String? anchorUserId) async {
  var res = await BaseDao.fromBaseEncryptV3({}, Address.getAnchorVideoInfo(),
      post: false, queryParameters: {'anchorUserId': anchorUserId});
  if (res.result) {
    var entity = VideoInfoEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}