import 'package:equatable/equatable.dart';

/// 价格信息
class PriceInfo extends Equatable {
  /// 当前价格
  final String price;
  /// 积分股池
  final String greenPoints;
  /// 黑洞销毁量
  final String blackHoleAmount;
  /// 流通池
  final String circulationPool;
  /// 有效分母
  final String effectiveDenominator;
  /// 销毁倍数
  final String burnMultiplier;
  /// 每分钟销毁率
  final String minuteBurnRate;
  /// 快照时间
  final DateTime snapshotTime;
  /// 较上线首日涨跌幅（百分比）
  final String priceChangePercent;
  /// 上线首日价格
  final String initialPrice;

  const PriceInfo({
    required this.price,
    required this.greenPoints,
    required this.blackHoleAmount,
    required this.circulationPool,
    required this.effectiveDenominator,
    required this.burnMultiplier,
    required this.minuteBurnRate,
    required this.snapshotTime,
    required this.priceChangePercent,
    required this.initialPrice,
  });

  @override
  List<Object?> get props => [
        price,
        greenPoints,
        blackHoleAmount,
        circulationPool,
        effectiveDenominator,
        burnMultiplier,
        minuteBurnRate,
        snapshotTime,
        priceChangePercent,
        initialPrice,
      ];
}
