zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Application/Models/Measurements/DevicePropertyValue.cs

13 lines
424 B
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
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; }
}
}