11import 'dart:io' ;
22
33import 'package:dio/dio.dart' ;
4+ import 'package:simple_live_core/simple_live_core.dart' ;
45import 'package:simple_live_core/src/model/tars/get_cdn_token_req.dart' ;
56import 'package:simple_live_core/src/model/tars/get_cdn_token_resp.dart' ;
67import 'package:tars_dart/tars/net/base_tars_http.dart' ;
@@ -9,7 +10,7 @@ import 'package:tars_dart/tars/tup/uni_packet.dart';
910void main () async {
1011 // CoreLog.enableLog = true;
1112 // CoreLog.requestLogType = RequestLogType.short;
12- // LiveSite site = BiliBiliSite();
13+ LiveSite site = BiliBiliSite ();
1314 // var danmaku = site.getDanmaku();
1415 // danmaku.onMessage = (event) {
1516 // if (event.type == LiveMessageType.chat) {
@@ -27,7 +28,8 @@ void main() async {
2728
2829 // //var search = await site.searchRooms("东方");
2930
30- // //var categores = await site.getCategores();
31+ var categores = await site.getCategores ();
32+ var rooms = await site.getCategoryRooms (categores.first.children.first);
3133 // //print(categores.length);
3234 // var detail = await site.getRoomDetail(roomId: '7734200');
3335 // // var playQualites = await site.getPlayQualites(detail: detail);
@@ -42,7 +44,7 @@ void main() async {
4244 // danmaku.start(detail.danmakuData);
4345
4446 // await Future.wait({});
45- sendReq ();
47+ // sendReq();
4648}
4749
4850void testHuyaReq () async {
0 commit comments