mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
* tweak * opt: show bar * opt: crc32 * opt: appsign * opt: Get * opt: compress only if large * opt: wbi * tweak Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Signed-off-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com> Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
33 lines
783 B
Dart
33 lines
783 B
Dart
import 'package:PiliPlus/models_new/live/live_follow/item.dart';
|
|
|
|
class LiveFollowData {
|
|
String? title;
|
|
int? pageSize;
|
|
int? totalPage;
|
|
List<LiveFollowItem>? list;
|
|
int? count;
|
|
int? liveCount;
|
|
|
|
LiveFollowData({
|
|
this.title,
|
|
this.pageSize,
|
|
this.totalPage,
|
|
this.list,
|
|
this.count,
|
|
this.liveCount,
|
|
});
|
|
|
|
LiveFollowData.fromJson(Map<String, dynamic> json) {
|
|
title = json['title'] as String?;
|
|
pageSize = json['pageSize'] as int?;
|
|
totalPage = json['totalPage'] as int?;
|
|
list = (json['list'] as List<dynamic>?)
|
|
?.cast<Map<String, dynamic>>()
|
|
.where((i) => i['live_status'] == 1)
|
|
.map(LiveFollowItem.fromJson)
|
|
.toList();
|
|
count = json['count'] as int?;
|
|
liveCount = json['live_count'] as int?;
|
|
}
|
|
}
|