Files
XRLib/Assets/Scripts/UVC/Data/MQTTPipeLineInfo.cs
2025-06-06 02:17:54 +09:00

32 lines
703 B
C#

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