40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
|
|
using System.Text.Json.Serialization;
|
|||
|
|
|
|||
|
|
namespace YD_TrainingCompetition_Api.Models;
|
|||
|
|
|
|||
|
|
public sealed class DeviceTelemetry
|
|||
|
|
{
|
|||
|
|
[JsonPropertyName("deviceId")]
|
|||
|
|
public string DeviceId { get; set; } = string.Empty;
|
|||
|
|
|
|||
|
|
[JsonPropertyName("counter")]
|
|||
|
|
public int Counter { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("bsName")]
|
|||
|
|
public string? BsName { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("athleteName")]
|
|||
|
|
public string? AthleteName { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("school")]
|
|||
|
|
public string? School { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("errorCount")]
|
|||
|
|
public int? ErrorCount { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("battery")]
|
|||
|
|
public int? Battery { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("rssi")]
|
|||
|
|
public int? Rssi { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("gatewayId")]
|
|||
|
|
public string? GatewayId { get; set; }
|
|||
|
|
|
|||
|
|
[JsonPropertyName("timestamp")]
|
|||
|
|
public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow;
|
|||
|
|
|
|||
|
|
[JsonPropertyName("ingestedAt")]
|
|||
|
|
public DateTimeOffset IngestedAt { get; set; } = DateTimeOffset.UtcNow;
|
|||
|
|
}
|