import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:functions/src/features/activity_meter/domain/entities/activity_entity.dart';
import 'package:legacy_shared/legacy_shared.dart';

part 'activity_meter_view_state.freezed.dart';

@freezed
abstract class ActivityMeterViewState with _$ActivityMeterViewState {
  const factory ActivityMeterViewState({
    DeviceEntity? selectedDevice,
    DateTime? selectedDate,
    @Default(false) bool enabled,
    @Default([]) List<ActivityEntity> activityList,
    @Default([]) List<ActivityEntity> weekActivity,
    ActivityEntity? selectedActivity,
    @Default(0) double stepLength,
    @Default(0) double weight,
    @Default(true) bool isLoading,
    @Default('') String errorMessage,
  }) = _ActivityMeterViewState;
}
