using EVCB_OCPP.Packet20.DataTypes; using EVCB_OCPP.Packet20.DataTypes.EnumTypes; using EVCB_OCPP.Packet20.Utilites; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EVCB_OCPP.Packet20.Messages { public class ReserveNowRequest { /// /// Id of reservation. /// [Required] public int Id { set; get; } [Required] [JsonConverter(typeof(UTCDateTimeConverter))] public DateTime ExpiryDateTime { set; get; } /// /// This field specifies the connector type. /// [JsonConverter(typeof(StringEnumConverter))] public ConnectorEnumType? ConnectorType { set; get; } /// /// This contains ID of the evse to be reserved /// public int? EvseId { set; get; } /// /// The identifier for which the reservation is ///made. /// [Required] public IdTokenType IdToken { set; get; } /// /// The group identifier for which the reservation is /// made. /// public IdTokenType GroupIdToken { set; get; } } }