package com.gameplatform.server.event;

import com.gameplatform.server.model.dto.device.DeviceStatusResponse;
import org.springframework.context.ApplicationEvent;

/**
 * 设备状态更新事件
 * 当设备状态检查完成后发布此事件，由对应的监听器处理任务更新
 */
public class DeviceStatusUpdatedEvent extends ApplicationEvent {
    
    private final DeviceStatusResponse deviceStatus;
    
    public DeviceStatusUpdatedEvent(Object source, DeviceStatusResponse deviceStatus) {
        super(source);
        this.deviceStatus = deviceStatus;
    }
    
    public DeviceStatusResponse getDeviceStatus() {
        return deviceStatus;
    }
}
