mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-05 18:44:48 +08:00
feat: at user
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
37
lib/models_new/dynamic/dyn_mention/item.dart
Normal file
37
lib/models_new/dynamic/dyn_mention/item.dart
Normal file
@@ -0,0 +1,37 @@
|
||||
class MentionItem {
|
||||
String? face;
|
||||
int? fans;
|
||||
String? name;
|
||||
int? officialVerifyType;
|
||||
String? uid;
|
||||
|
||||
MentionItem({
|
||||
this.face,
|
||||
this.fans,
|
||||
this.name,
|
||||
this.officialVerifyType,
|
||||
this.uid,
|
||||
});
|
||||
|
||||
factory MentionItem.fromJson(Map<String, dynamic> json) => MentionItem(
|
||||
face: json['face'] as String?,
|
||||
fans: json['fans'] as int?,
|
||||
name: json['name'] as String?,
|
||||
officialVerifyType: json['official_verify_type'] as int?,
|
||||
uid: json['uid'] as String?,
|
||||
);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (other is MentionItem) {
|
||||
return uid == other.uid;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => uid.hashCode;
|
||||
}
|
||||
Reference in New Issue
Block a user