30 lines
679 B
C#
30 lines
679 B
C#
using System;
|
|
|
|
namespace UVC.Data
|
|
{
|
|
public class MQTTPipeLineInfo
|
|
{
|
|
public string topic; // MQTT 토픽
|
|
public Action<DataObject> handler = null; // 메시지 핸들러
|
|
public DataMapper dataMapper = null; // 데이터 매퍼
|
|
|
|
public MQTTPipeLineInfo(string topic)
|
|
{
|
|
this.topic = topic;
|
|
}
|
|
|
|
public MQTTPipeLineInfo setHandler(Action<DataObject> handler)
|
|
{
|
|
this.handler = handler;
|
|
return this;
|
|
}
|
|
|
|
public MQTTPipeLineInfo setDataMapper(DataMapper dataMapper)
|
|
{
|
|
this.dataMapper = dataMapper;
|
|
return this;
|
|
}
|
|
|
|
}
|
|
}
|