package cn.iocoder.yudao.module.pms.controller.admin.yanfan.sip.handler.req.message.notify;

import cn.iocoder.yudao.module.pms.controller.admin.yanfan.sip.handler.req.message.MessageHandlerAbstract;
import cn.iocoder.yudao.module.pms.controller.admin.yanfan.sip.handler.req.message.MessageRequestProcessor;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class NotifyMessageHandler extends MessageHandlerAbstract implements InitializingBean {

    @Autowired
    private MessageRequestProcessor messageRequestProcessor;

    @Override
    public void afterPropertiesSet() throws Exception {
        String messageType = "Notify";
        messageRequestProcessor.addHandler(messageType, this);
    }
}
