import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hub/src/features/hub/domain/entities/address_entity.dart';
import 'package:hub/src/features/hub/domain/entities/network_entity.dart';

part 'position_entity.freezed.dart';

@freezed
abstract class PositionEntity with _$PositionEntity {
  const factory PositionEntity({
    required String id,
    required String deviceIdentificator,
    required double latitude,
    required double longitude,
    required int hpe,
    int? ncell,
    required int type,
    int? steps,
    AddressEntity? address,
    required int createdAt,
    required int positionDate,
    int? positionDateOriginal,
    String? frequentPlaceName,
    required String message,
    required List<NetworkEntity> networks,
    required bool ignore,
    required bool suspect,
    required bool frequentPlace,
  }) = _PositionEntity;
}
