import 'package:hub/src/features/hub/domain/entities/position_entity.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:legacy_shared/legacy_shared.dart';

part 'hub_view_state.freezed.dart';

@freezed
abstract class HubViewState with _$HubViewState {
  const factory HubViewState({
    UserEntity? loggedUser,
    @Default([]) List<DeviceEntity> devices,
    DeviceEntity? selectedDevice,
    @Default([]) List<PositionEntity> positions,
    PositionEntity? selectedPosition
  }) = _HubViewState;
}
