import 'package:superport_v2/core/common/models/paginated_result.dart';

import 'inventory_summary.dart';

/// 재고 요약 목록과 뷰 리프레시 메타데이터를 함께 담는 결과 모델.
class InventorySummaryListResult {
  const InventorySummaryListResult({
    required this.result,
    this.lastRefreshedAt,
  });

  final PaginatedResult<InventorySummary> result;
  final DateTime? lastRefreshedAt;

  InventorySummaryListResult copyWith({
    PaginatedResult<InventorySummary>? result,
    DateTime? lastRefreshedAt,
  }) {
    return InventorySummaryListResult(
      result: result ?? this.result,
      lastRefreshedAt: lastRefreshedAt ?? this.lastRefreshedAt,
    );
  }
}
