User profile

This commit is contained in:
2024-12-03 23:38:43 +08:00
parent 273c66f5d5
commit 468b7f2c2e
12 changed files with 520 additions and 203 deletions

View File

@ -106,3 +106,16 @@ class SnAccountBadge with _$SnAccountBadge {
factory SnAccountBadge.fromJson(Map<String, Object?> json) =>
_$SnAccountBadgeFromJson(json);
}
@freezed
class SnAccountStatusInfo with _$SnAccountStatusInfo {
const factory SnAccountStatusInfo({
required bool isDisturbable,
required bool isOnline,
required DateTime? lastSeenAt,
required dynamic status,
}) = _SnAccountStatusInfo;
factory SnAccountStatusInfo.fromJson(Map<String, Object?> json) =>
_$SnAccountStatusInfoFromJson(json);
}