fix: Fixed some parameter errors.

This commit is contained in:
Brett
2023-11-16 16:20:54 +08:00
parent bf9cd3ca21
commit a4b52f5895
4 changed files with 22 additions and 8 deletions

View File

@@ -98,6 +98,22 @@ class FullUserInfo {
return data;
}
String get userID {
return publicInfo?.userID ?? friendInfo?.userID ?? blackInfo?.userID ?? '';
}
String get nickname {
return publicInfo?.nickname ?? friendInfo?.nickname ?? blackInfo?.nickname ?? '';
}
String get faceURL {
return publicInfo?.faceURL ?? friendInfo?.faceURL ?? blackInfo?.faceURL ?? '';
}
String get showName {
return friendInfo?.nickname ?? nickname;
}
}
class PublicUserInfo {