mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-21 08:38:37 +00:00
show search rcmd reason
Closes #921 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -3,12 +3,14 @@ class SearchTrendingItemModel {
|
||||
String? showName;
|
||||
String? icon;
|
||||
bool? showLiveIcon;
|
||||
String? recommendReason;
|
||||
|
||||
SearchTrendingItemModel({
|
||||
this.keyword,
|
||||
this.showName,
|
||||
this.icon,
|
||||
this.showLiveIcon,
|
||||
this.recommendReason,
|
||||
});
|
||||
|
||||
factory SearchTrendingItemModel.fromJson(Map<String, dynamic> json) =>
|
||||
@@ -17,5 +19,9 @@ class SearchTrendingItemModel {
|
||||
showName: json['show_name'] as String?,
|
||||
icon: json['icon'] as String?,
|
||||
showLiveIcon: json['show_live_icon'] as bool?,
|
||||
recommendReason: (json['recommend_reason'] as String?)?.replaceFirst(
|
||||
'·',
|
||||
' ',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user