import 'package:legacy_shared/src/data/models/entities/device_entity.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:legacy_shared/legacy_shared.dart';

part 'linked_devices_view_state.freezed.dart';

@freezed
abstract class LinkedDevicesViewState with _$LinkedDevicesViewState {
  const factory LinkedDevicesViewState({
    @Default(false) bool isLoading,
    @Default(null) UserEntity? loggedUser,
    @Default([]) List<DeviceEntity> linkedDevices,
    @Default(false) bool isEditing,
    @Default('') String deviceName,
    @Default('') String errorMessage
  }) = _LinkedDevicesViewState;
}
