using JiShe.CollectBus.Analyzers.Shared;
using JiShe.CollectBus.IoTDB.Attribute;
using JiShe.CollectBus.IoTDB.Enums;

namespace JiShe.CollectBus.IoTDB.Model
{
    /// <summary>
    /// Tree模型单项数据实体
    /// </summary>
    [EntityType(EntityTypeEnum.TreeModel)]
    [SourceAnalyzers]
    public class TreeModelSingleMeasuringEntity<T> : IoTEntity
    {
        /// <summary>
        /// 单项数据键值对
        /// </summary>
        [SingleMeasuring(nameof(SingleMeasuring))]
        public required Tuple<string, T> SingleMeasuring { get; set; }
    }
}
