zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/Models/Measurements/DevicePropertyValue.cs
2023-12-05 17:22:48 +08:00

13 lines
424 B
C#

using System.Text.Json.Serialization;
using ZeroFramework.DeviceCenter.Application.Infrastructure;
namespace ZeroFramework.DeviceCenter.Application.Models.Measurements
{
public class DevicePropertyValue
{
public long? Timestamp { get; set; } = DateTimeOffset.Now.ToUnixTimeMilliseconds();
[JsonConverter(typeof(ObjectToInferredTypesConverter))]
public object? Value { get; set; }
}
}