package cn.iocoder.byzs.module.iot.service.rule.action;

import cn.iocoder.byzs.module.iot.dal.dataobject.rule.IotRuleSceneDO;
import cn.iocoder.byzs.module.iot.enums.rule.IotRuleSceneActionTypeEnum;
import cn.iocoder.byzs.module.iot.mq.message.IotDeviceMessage;
import org.springframework.stereotype.Component;

import javax.annotation.Nullable;

/**
 * IoT 告警的 {@link IotRuleSceneAction} 实现类
 *
 * @author 博雅智算源码
 */
@Component
public class IotRuleSceneAlertAction implements IotRuleSceneAction {

    @Override
    public void execute(@Nullable IotDeviceMessage message, IotRuleSceneDO.ActionConfig config) {
        // TODO @lyb：待实现
    }

    @Override
    public IotRuleSceneActionTypeEnum getType() {
        return IotRuleSceneActionTypeEnum.ALERT;
    }

}
