import 'package:hive/hive.dart';

part 'gamification.g.dart';

@HiveType(typeId: 14)
class Gamification extends HiveObject {
  @HiveField(0)
  final int ponPoints;

  @HiveField(1)
  final String? sakeMbtiType;

  @HiveField(2)
  final String? rarityLevel;

  Gamification({
    this.ponPoints = 0,
    this.sakeMbtiType,
    this.rarityLevel,
  });

  Gamification copyWith({
    int? ponPoints,
    String? sakeMbtiType,
    String? rarityLevel,
  }) {
    return Gamification(
      ponPoints: ponPoints ?? this.ponPoints,
      sakeMbtiType: sakeMbtiType ?? this.sakeMbtiType,
      rarityLevel: rarityLevel ?? this.rarityLevel,
    );
  }
}
