feat(app): seed restaurants, geocode addresses, refresh sharing
This commit is contained in:
@@ -61,6 +61,9 @@ class Restaurant extends HiveObject {
|
||||
@HiveField(18)
|
||||
final int visitCount;
|
||||
|
||||
@HiveField(19)
|
||||
final bool needsAddressVerification;
|
||||
|
||||
Restaurant({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -81,6 +84,7 @@ class Restaurant extends HiveObject {
|
||||
this.businessHours,
|
||||
this.lastVisited,
|
||||
this.visitCount = 0,
|
||||
this.needsAddressVerification = false,
|
||||
});
|
||||
|
||||
Restaurant copyWith({
|
||||
@@ -103,6 +107,7 @@ class Restaurant extends HiveObject {
|
||||
String? businessHours,
|
||||
DateTime? lastVisited,
|
||||
int? visitCount,
|
||||
bool? needsAddressVerification,
|
||||
}) {
|
||||
return Restaurant(
|
||||
id: id ?? this.id,
|
||||
@@ -124,6 +129,8 @@ class Restaurant extends HiveObject {
|
||||
businessHours: businessHours ?? this.businessHours,
|
||||
lastVisited: lastVisited ?? this.lastVisited,
|
||||
visitCount: visitCount ?? this.visitCount,
|
||||
needsAddressVerification:
|
||||
needsAddressVerification ?? this.needsAddressVerification,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -135,4 +142,7 @@ enum DataSource {
|
||||
|
||||
@HiveField(1)
|
||||
USER_INPUT,
|
||||
|
||||
@HiveField(2)
|
||||
PRESET,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user