package com.yeejoin.amos.boot.module.jyjc.biz.listener.message;

import lombok.Data;
import org.eclipse.paho.client.mqttv3.MqttMessage;

import java.io.Serializable;

@Data
public class BizMessage implements Serializable {

    /**
     * 主题
     */
    private String topic;

    /**
     * 消息题
     */
    private MqttMessage message;

    public BizMessage(String topic, MqttMessage message){
        this.topic = topic;
        this.message = message;
    }
}
