Your commit message here
This commit is contained in:
@@ -28,6 +28,25 @@ enum FertilityGoal {
|
||||
justTracking,
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
@HiveType(typeId: 9)
|
||||
enum BibleTranslation {
|
||||
@HiveField(0)
|
||||
esv,
|
||||
@HiveField(1)
|
||||
niv,
|
||||
@HiveField(2)
|
||||
nkjv,
|
||||
@HiveField(3)
|
||||
nlt,
|
||||
@HiveField(4)
|
||||
nasb,
|
||||
@HiveField(5)
|
||||
kjv,
|
||||
}
|
||||
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
/// User profile model
|
||||
@HiveType(typeId: 2)
|
||||
class UserProfile extends HiveObject {
|
||||
@@ -75,6 +94,12 @@ class UserProfile extends HiveObject {
|
||||
|
||||
@HiveField(15, defaultValue: false)
|
||||
bool isIrregularCycle;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
@HiveField(16, defaultValue: BibleTranslation.esv)
|
||||
BibleTranslation bibleTranslation;
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
|
||||
UserProfile({
|
||||
required this.id,
|
||||
@@ -90,9 +115,15 @@ class UserProfile extends HiveObject {
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
this.partnerName,
|
||||
<<<<<<< HEAD
|
||||
|
||||
this.role = UserRole.wife,
|
||||
this.isIrregularCycle = false,
|
||||
=======
|
||||
this.role = UserRole.wife,
|
||||
this.isIrregularCycle = false,
|
||||
this.bibleTranslation = BibleTranslation.esv,
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
});
|
||||
|
||||
/// Check if user is married
|
||||
@@ -129,9 +160,15 @@ class UserProfile extends HiveObject {
|
||||
DateTime? createdAt,
|
||||
DateTime? updatedAt,
|
||||
String? partnerName,
|
||||
<<<<<<< HEAD
|
||||
|
||||
UserRole? role,
|
||||
bool? isIrregularCycle,
|
||||
=======
|
||||
UserRole? role,
|
||||
bool? isIrregularCycle,
|
||||
BibleTranslation? bibleTranslation,
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
}) {
|
||||
return UserProfile(
|
||||
id: id ?? this.id,
|
||||
@@ -147,13 +184,35 @@ class UserProfile extends HiveObject {
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
updatedAt: updatedAt ?? DateTime.now(),
|
||||
partnerName: partnerName ?? this.partnerName,
|
||||
<<<<<<< HEAD
|
||||
|
||||
role: role ?? this.role,
|
||||
isIrregularCycle: isIrregularCycle ?? this.isIrregularCycle,
|
||||
=======
|
||||
role: role ?? this.role,
|
||||
isIrregularCycle: isIrregularCycle ?? this.isIrregularCycle,
|
||||
bibleTranslation: bibleTranslation ?? this.bibleTranslation,
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
extension BibleTranslationExtension on BibleTranslation {
|
||||
String get label {
|
||||
switch (this) {
|
||||
case BibleTranslation.esv: return 'ESV';
|
||||
case BibleTranslation.niv: return 'NIV';
|
||||
case BibleTranslation.nkjv: return 'NKJV';
|
||||
case BibleTranslation.nlt: return 'NLT';
|
||||
case BibleTranslation.nasb: return 'NASB';
|
||||
case BibleTranslation.kjv: return 'KJV';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>>>>>>> 6742220 (Your commit message here)
|
||||
@HiveType(typeId: 8)
|
||||
enum UserRole {
|
||||
@HiveField(0)
|
||||
|
||||
Reference in New Issue
Block a user