Merge branch 'dev' into feature/session-persistence-424
This commit is contained in:
@@ -2,6 +2,38 @@ import 'package:equatable/equatable.dart';
|
||||
import 'package:krow_domain/src/entities/shifts/break/break.dart';
|
||||
|
||||
class Shift extends Equatable {
|
||||
final String id;
|
||||
final String title;
|
||||
final String clientName;
|
||||
final String? logoUrl;
|
||||
final double hourlyRate;
|
||||
final String location;
|
||||
final String locationAddress;
|
||||
final String date;
|
||||
final String startTime;
|
||||
final String endTime;
|
||||
final String createdDate;
|
||||
final bool? tipsAvailable;
|
||||
final bool? travelTime;
|
||||
final bool? mealProvided;
|
||||
final bool? parkingAvailable;
|
||||
final bool? gasCompensation;
|
||||
final String? description;
|
||||
final String? instructions;
|
||||
final List<ShiftManager>? managers;
|
||||
final double? latitude;
|
||||
final double? longitude;
|
||||
final String? status;
|
||||
final int? durationDays; // For multi-day shifts
|
||||
final int? requiredSlots;
|
||||
final int? filledSlots;
|
||||
final String? roleId;
|
||||
final bool? hasApplied;
|
||||
final double? totalValue;
|
||||
final Break? breakInfo;
|
||||
final String? orderId;
|
||||
final String? orderType;
|
||||
final List<ShiftSchedule>? schedules;
|
||||
|
||||
const Shift({
|
||||
required this.id,
|
||||
@@ -33,6 +65,9 @@ class Shift extends Equatable {
|
||||
this.hasApplied,
|
||||
this.totalValue,
|
||||
this.breakInfo,
|
||||
this.orderId,
|
||||
this.orderType,
|
||||
this.schedules,
|
||||
});
|
||||
final String id;
|
||||
final String title;
|
||||
@@ -95,9 +130,27 @@ class Shift extends Equatable {
|
||||
hasApplied,
|
||||
totalValue,
|
||||
breakInfo,
|
||||
orderId,
|
||||
orderType,
|
||||
schedules,
|
||||
];
|
||||
}
|
||||
|
||||
class ShiftSchedule extends Equatable {
|
||||
const ShiftSchedule({
|
||||
required this.date,
|
||||
required this.startTime,
|
||||
required this.endTime,
|
||||
});
|
||||
|
||||
final String date;
|
||||
final String startTime;
|
||||
final String endTime;
|
||||
|
||||
@override
|
||||
List<Object?> get props => <Object?>[date, startTime, endTime];
|
||||
}
|
||||
|
||||
class ShiftManager extends Equatable {
|
||||
const ShiftManager({required this.name, required this.phone, this.avatar});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user