Files
front-hokm/lib/feature/profile/domain/entities/profile_entity.dart
T
2026-06-17 12:57:28 +03:30

45 lines
1.1 KiB
Dart

/// آمار بازیِ کاربر (در صورت قفل بودن، null است).
class ProfileStats {
final int games;
final int wins;
final int losses;
final int kotMade;
final int kotReceived;
final int cuts;
final int hakemCount;
const ProfileStats({
required this.games,
required this.wins,
required this.losses,
required this.kotMade,
required this.kotReceived,
required this.cuts,
required this.hakemCount,
});
}
/// موجودیتِ کاملِ پروفایل (نام/آواتار + خلاصه‌ی اقتصادی + آمار).
class ProfileEntity {
final String name;
final String avatar;
final String mobile;
final int level;
final int trophies;
final int xpInto;
final int xpNext;
final bool vip;
final ProfileStats? stats; // null یعنی قفل (غیر VIP)
const ProfileEntity({
required this.name,
required this.avatar,
required this.mobile,
required this.level,
required this.trophies,
required this.xpInto,
required this.xpNext,
required this.vip,
required this.stats,
});
}