mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 04:58:41 +00:00
opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
|
||||
class LiveItemModel {
|
||||
LiveItemModel({
|
||||
this.roomId,
|
||||
@@ -19,9 +21,6 @@ class LiveItemModel {
|
||||
this.sessionId,
|
||||
this.groupId,
|
||||
this.pkId,
|
||||
this.verify,
|
||||
this.headBox,
|
||||
this.headBoxType,
|
||||
this.watchedShow,
|
||||
});
|
||||
|
||||
@@ -44,10 +43,7 @@ class LiveItemModel {
|
||||
String? sessionId;
|
||||
int? groupId;
|
||||
int? pkId;
|
||||
Map? verify;
|
||||
Map? headBox;
|
||||
int? headBoxType;
|
||||
Map? watchedShow;
|
||||
WatchedShow? watchedShow;
|
||||
|
||||
LiveItemModel.fromJson(Map<String, dynamic> json) {
|
||||
roomId = json['roomid'];
|
||||
@@ -69,9 +65,6 @@ class LiveItemModel {
|
||||
sessionId = json['session_id'];
|
||||
groupId = json['group_id'];
|
||||
pkId = json['pk_id'];
|
||||
verify = json['verify'];
|
||||
headBox = json['head_box'];
|
||||
headBoxType = json['head_box_type'];
|
||||
watchedShow = json['watched_show'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'package:PiliPlus/models/dynamics/result.dart';
|
||||
|
||||
class RoomInfoH5Model {
|
||||
RoomInfoH5Model({
|
||||
this.roomInfo,
|
||||
@@ -5,15 +7,13 @@ class RoomInfoH5Model {
|
||||
this.isRoomFeed,
|
||||
this.watchedShow,
|
||||
this.likeInfoV3,
|
||||
this.blockInfo,
|
||||
});
|
||||
|
||||
RoomInfo? roomInfo;
|
||||
AnchorInfo? anchorInfo;
|
||||
int? isRoomFeed;
|
||||
Map? watchedShow;
|
||||
WatchedShow? watchedShow;
|
||||
LikeInfoV3? likeInfoV3;
|
||||
Map? blockInfo;
|
||||
|
||||
RoomInfoH5Model.fromJson(Map<String, dynamic> json) {
|
||||
roomInfo =
|
||||
@@ -22,11 +22,12 @@ class RoomInfoH5Model {
|
||||
? null
|
||||
: AnchorInfo.fromJson(json['anchor_info']);
|
||||
isRoomFeed = json['is_room_feed'];
|
||||
watchedShow = json['watched_show'];
|
||||
watchedShow = json['watched_show'] == null
|
||||
? null
|
||||
: WatchedShow.fromJson(json['watched_show']);
|
||||
likeInfoV3 = json['like_info_v3'] == null
|
||||
? null
|
||||
: LikeInfoV3.fromJson(json['like_info_v3']);
|
||||
blockInfo = json['block_info'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user