32 lines
767 B
C#
32 lines
767 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace RobotNet10.FleetManager.Services.OpenACS;
|
|
public class TrafficACSResult
|
|
{
|
|
public static string GO => "go";
|
|
public static string NO => "no";
|
|
}
|
|
public class TrafficACSResponse
|
|
{
|
|
[JsonPropertyName("time")]
|
|
[Required]
|
|
public string? Time { get; set; }
|
|
|
|
[JsonPropertyName("agv_id")]
|
|
[Required]
|
|
public string? AgvId { get; set; }
|
|
|
|
[JsonPropertyName("traffic_zone_id")]
|
|
[Required]
|
|
public string? TrafficZoneId { get; set; }
|
|
|
|
[JsonPropertyName("inout")]
|
|
[Required]
|
|
public string? InOut { get; set; }
|
|
|
|
[JsonPropertyName("result")]
|
|
[Required]
|
|
public string? Result { get; set; }
|
|
}
|