mirrored_repositories/pmodoro-application/lib/features/task_management/domain
import "package:equatable/equatable.dart";

class AnalysisEntity extends Equatable {
  final Map<DateTime, int> overviews;
  final List<YearlyAnalyzeItemEntity> yearlyAnalyze;
  final int todayCompletedPomodoroCount, todayCompletedTask;
  final List<double> weeklySpendingPomodoro;

  const AnalysisEntity({
    required this.overviews,
    required this.yearlyAnalyze,
    required this.todayCompletedPomodoroCount,
    required this.todayCompletedTask,
    required this.weeklySpendingPomodoro,
  });

  @override
  List<Object?> get props => [
        yearlyAnalyze,
        overviews,
        todayCompletedPomodoroCount,
        todayCompletedTask,
      ];

  @override
  String toString() {
    return "AnalysisEntity{overviews: $overviews, yearlyAnalyze: $yearlyAnalyze, todayCompletedPomodoroCount: $todayCompletedPomodoroCount, todayCompletedTask: $todayCompletedTask}";
  }
}

class YearlyAnalyzeItemEntity extends Equatable {
  final String month;
  final int count;

  const YearlyAnalyzeItemEntity({required this.month, required this.count});

  @override
  List<Object?> get props => [month, count];

  @override
  String toString() {
    return "YearlyAnalyzeItemEntity{month: $month, count: $count}";
  }
}
