package com.rdiot.yx485.bean

import com.rdiot.yx485.http.entity.BaseReplyBean

data class ConsumableBean(
    val data: DataBean
) : BaseReplyBean() {
    
    data class DataBean(
        val home_id: String,
        val desc: String,
        val enough: Boolean,
        val devices: List<DeviceInfo>
    )

    data class DeviceInfo(
        val device_id: String,
        val device_name: String,
        val device_type_name: String,
        val consumables: List<ConsumableInfo>
    )

    data class ConsumableInfo(
        val record_id: String,
        val device_id: String,
        val consumable_id: String,
        val consumable_name: String,
        val last_updated_at: String,
        val used_time: Int,          // 已使用天数
        val user_rate: Double        // 使用率，范围 0-1
    )
} 