Files
XRLib/Assets/Scripts/UVC/Data/MQTTPipeLineInfo.cs

32 lines
703 B
C#
Raw Normal View History

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