feat(app): add manual entry and sharing flows
This commit is contained in:
@@ -6,19 +6,19 @@ part 'recommendation_record.g.dart';
|
||||
class RecommendationRecord extends HiveObject {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
final String restaurantId;
|
||||
|
||||
|
||||
@HiveField(2)
|
||||
final DateTime recommendationDate;
|
||||
|
||||
|
||||
@HiveField(3)
|
||||
final bool visited;
|
||||
|
||||
|
||||
@HiveField(4)
|
||||
final DateTime createdAt;
|
||||
|
||||
|
||||
RecommendationRecord({
|
||||
required this.id,
|
||||
required this.restaurantId,
|
||||
@@ -26,4 +26,4 @@ class RecommendationRecord extends HiveObject {
|
||||
required this.visited,
|
||||
required this.createdAt,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,61 +6,61 @@ part 'restaurant.g.dart';
|
||||
class Restaurant extends HiveObject {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
final String name;
|
||||
|
||||
|
||||
@HiveField(2)
|
||||
final String category;
|
||||
|
||||
|
||||
@HiveField(3)
|
||||
final String subCategory;
|
||||
|
||||
|
||||
@HiveField(4)
|
||||
final String? description;
|
||||
|
||||
|
||||
@HiveField(5)
|
||||
final String? phoneNumber;
|
||||
|
||||
|
||||
@HiveField(6)
|
||||
final String roadAddress;
|
||||
|
||||
|
||||
@HiveField(7)
|
||||
final String jibunAddress;
|
||||
|
||||
|
||||
@HiveField(8)
|
||||
final double latitude;
|
||||
|
||||
|
||||
@HiveField(9)
|
||||
final double longitude;
|
||||
|
||||
|
||||
@HiveField(10)
|
||||
final DateTime? lastVisitDate;
|
||||
|
||||
|
||||
@HiveField(11)
|
||||
final DataSource source;
|
||||
|
||||
|
||||
@HiveField(12)
|
||||
final DateTime createdAt;
|
||||
|
||||
|
||||
@HiveField(13)
|
||||
final DateTime updatedAt;
|
||||
|
||||
|
||||
@HiveField(14)
|
||||
final String? naverPlaceId;
|
||||
|
||||
|
||||
@HiveField(15)
|
||||
final String? naverUrl;
|
||||
|
||||
|
||||
@HiveField(16)
|
||||
final String? businessHours;
|
||||
|
||||
|
||||
@HiveField(17)
|
||||
final DateTime? lastVisited;
|
||||
|
||||
|
||||
@HiveField(18)
|
||||
final int visitCount;
|
||||
|
||||
|
||||
Restaurant({
|
||||
required this.id,
|
||||
required this.name,
|
||||
@@ -132,7 +132,7 @@ class Restaurant extends HiveObject {
|
||||
enum DataSource {
|
||||
@HiveField(0)
|
||||
NAVER,
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
USER_INPUT
|
||||
}
|
||||
USER_INPUT,
|
||||
}
|
||||
|
||||
@@ -2,10 +2,10 @@ class ShareDevice {
|
||||
final String code;
|
||||
final String deviceId;
|
||||
final DateTime discoveredAt;
|
||||
|
||||
|
||||
ShareDevice({
|
||||
required this.code,
|
||||
required this.deviceId,
|
||||
required this.discoveredAt,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,16 +6,16 @@ part 'user_settings.g.dart';
|
||||
class UserSettings {
|
||||
@HiveField(0)
|
||||
final int revisitPreventionDays;
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
final bool notificationEnabled;
|
||||
|
||||
|
||||
@HiveField(2)
|
||||
final String notificationTime;
|
||||
|
||||
|
||||
@HiveField(3)
|
||||
final Map<String, double> categoryWeights;
|
||||
|
||||
|
||||
@HiveField(4)
|
||||
final int notificationDelayMinutes;
|
||||
|
||||
@@ -35,11 +35,13 @@ class UserSettings {
|
||||
int? notificationDelayMinutes,
|
||||
}) {
|
||||
return UserSettings(
|
||||
revisitPreventionDays: revisitPreventionDays ?? this.revisitPreventionDays,
|
||||
revisitPreventionDays:
|
||||
revisitPreventionDays ?? this.revisitPreventionDays,
|
||||
notificationEnabled: notificationEnabled ?? this.notificationEnabled,
|
||||
notificationTime: notificationTime ?? this.notificationTime,
|
||||
categoryWeights: categoryWeights ?? this.categoryWeights,
|
||||
notificationDelayMinutes: notificationDelayMinutes ?? this.notificationDelayMinutes,
|
||||
notificationDelayMinutes:
|
||||
notificationDelayMinutes ?? this.notificationDelayMinutes,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,19 +6,19 @@ part 'visit_record.g.dart';
|
||||
class VisitRecord extends HiveObject {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
|
||||
|
||||
@HiveField(1)
|
||||
final String restaurantId;
|
||||
|
||||
|
||||
@HiveField(2)
|
||||
final DateTime visitDate;
|
||||
|
||||
|
||||
@HiveField(3)
|
||||
final bool isConfirmed;
|
||||
|
||||
|
||||
@HiveField(4)
|
||||
final DateTime createdAt;
|
||||
|
||||
|
||||
VisitRecord({
|
||||
required this.id,
|
||||
required this.restaurantId,
|
||||
@@ -26,4 +26,4 @@ class VisitRecord extends HiveObject {
|
||||
required this.isConfirmed,
|
||||
required this.createdAt,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,18 @@
|
||||
class WeatherInfo {
|
||||
final WeatherData current;
|
||||
final WeatherData nextHour;
|
||||
|
||||
WeatherInfo({
|
||||
required this.current,
|
||||
required this.nextHour,
|
||||
});
|
||||
|
||||
WeatherInfo({required this.current, required this.nextHour});
|
||||
}
|
||||
|
||||
class WeatherData {
|
||||
final int temperature;
|
||||
final bool isRainy;
|
||||
final String description;
|
||||
|
||||
|
||||
WeatherData({
|
||||
required this.temperature,
|
||||
required this.isRainy,
|
||||
required this.description,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user