import '../../models/bo/cabin_detail_response.dart';

/// 舱详情模块本地 mock 数据。
///
/// 所有 mock 数据直接使用 models 层构造函数创建，
/// 确保数据结构与 models 定义完全一致。
/// 后续接入真实接口时，只需修改 Repository 层开关即可。
class CabinMockData {
  CabinMockData._();

  static CabinDetailResponse getMockCabinDetail() {
    return CabinDetailResponse(
      pageTitle: 'ICU 监护舱',
      deviceId: 1001,
      deviceName: 'TSAAS ICU 设备',
      cabinId: 1,
      cabinName: '888',
      cabinType: 'ICU',
      carbinSn: 'CNA07212L',
      cameraSn: 'VE10085871Q0XG',
      wifiPwd: '143548',
      wifiName: '设备',
      petInfo: PetInfoResponse(
        petId: 1,
        name: '妮蔻',
        avatar: '',
        type: '猫',
        breedTag: '长毛三花',
        disease: '胃炎',
        ownerName: '张先生',
        ownerPhone: '130-1111-3333',
        basicInfo: '3岁 雌性 4.5kg',
        petName: '妮蔻',
        petType: '猫',
        monitoringStatus: 'monitoring',
      ),
      cameraInfo: CameraInfoResponse(
        cameraId: 1,
        cameraName: '主摄像头',
        sn: 'VE10085871Q0XG',
        cameraPwd: '143548',
        status: 'online',
        streamUrl: '',
      ),
      monitoringData: MonitoringDataResponse(
        totalDuration: 7200,
        elapsedDuration: 3600,
        status: 'monitoring',
        careLevel: '特级',
        planId: 1,
        planName: '标准监护方案',
        planType: 'standard',
        temperatureSetting: 25,
        mainTemperature: 24,
        humidity: 55,
        humiditySetting: 50,
        oxygenConcentration: 21,
        oxygenSetting: 20,
        co2Measurement: 400,
        co2Setting: 500,
      ),
      cabinControls: CabinControlsResponse(
        temperature: 25.0,
        oxygen: 21.0,
        humidity: 55.0,
        co2: 400.0,
        nebulizer: 0,
        sterilize: 0,
        fanMode: 'auto',
        airMode: 'cycle',
        newFan: true,
        openOxygen: false,
        checkLight: false,
        light: true,
        blueLight: false,
        redLight: false,
      ),
      currentPlanId: 1,
      currentPetId: 1,
      status: 'occupied',
      state: 'normal',
    );
  }
}
