123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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 StatusNotificationRequest:IRequest
- {
-
-
-
-
- [Required]
- [JsonConverter(typeof(UTCDateTimeConverter))]
- public DateTime Timestamp { set; get; }
-
-
-
-
- [Required]
- [JsonConverter(typeof(StringEnumConverter))]
- public ConnectorStatusEnumType ConnectorStatus { set; get; }
-
-
-
-
- [Required]
- public int EvseId { set; get; }
-
-
-
-
- [Required]
- public int ConnectorId { set; get; }
- public string Action { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
- public bool TransactionRelated()
- {
- return false;
- }
- public bool Validate()
- {
- return Validator.TryValidateObject(this, new ValidationContext(this), null, true);
- }
- }
- }
|