Browse Source

2019/12/24 Jessica 7972
Actions:
1. 修正 optional message

Modified Files:
1.~\EVCB_OCPP.Packet

Jessica.Tseng 5 years ago
parent
commit
6ec1d5c4c9

+ 2 - 2
EVCB_OCPP.Packet/Messages/SmartCharging/ClearChargingProfileRequest.cs

@@ -24,9 +24,9 @@ namespace EVCB_OCPP.Packet.Messages.SmartCharging
 
         public int? id { set; get; }
 
-        public int connectorId { set; get; }
+        public int? connectorId { set; get; }
+
 
-        [Required]
         [JsonConverter(typeof(StringEnumConverter))]
         public ChargingProfilePurposeType? chargingProfilePurpose { set; get; }
 

+ 0 - 1
EVCB_OCPP.Packet/Messages/SmartCharging/GetCompositeScheduleConfirmation.cs

@@ -22,7 +22,6 @@ namespace EVCB_OCPP.Packet.Messages.SmartCharging
         public int? connectorId { set; get; }
 
 
-        [Required]
         [JsonConverter(typeof(UTCDateTimeConverter))]
         public DateTime? scheduleStart { set; get; }
 

+ 1 - 1
EVCB_OCPP.Packet/Messages/SmartCharging/GetCompositeScheduleRequest.cs

@@ -27,7 +27,7 @@ namespace EVCB_OCPP.Packet.Messages.SmartCharging
         [Required]
         public int duration { set; get; }
 
-        [Required]
+
         [JsonConverter(typeof(StringEnumConverter))]
         public ChargingRateUnitType? chargingRateUnit { set; get; }
 

+ 1 - 1
EVCB_OCPP.Packet/Messages/SubTypes/AuthorizationData.cs

@@ -10,7 +10,7 @@ namespace EVCB_OCPP.Packet.Messages.SubTypes
     public class AuthorizationData
     {
         [Required]
-        public string IdToken { set; get; }
+        public string idTag { set; get; }
 
         public IdTagInfo idTagInfo { set; get; }
     }