import 'package:fl_chart/fl_chart.dart';

class AlarmInfo {
  final String alarmType;
  final String deviceInfo;
  final String alarmLevel;
  final String urgency;
  final String currentTemp;
  final String voltage;
  final String current;
  final String triggerTime;
  final String threshold;
  final String duration;
  final String peak;
  final String linkAction;
  final String date;
  final List<FlSpot> temperatureSpots;

  const AlarmInfo({
    required this.alarmType,
    required this.deviceInfo,
    required this.alarmLevel,
    required this.urgency,
    required this.currentTemp,
    required this.voltage,
    required this.current,
    required this.triggerTime,
    required this.threshold,
    required this.duration,
    required this.peak,
    required this.linkAction,
    required this.date,
    required this.temperatureSpots,
  });
}

class AbnormalState {
  final AlarmInfo alarmInfo;

  const AbnormalState({
    required this.alarmInfo,
  });
}