1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using EVCB_OCPP.Packet.Features;
- using EVCB_OCPP.Packet.Messages.SubTypes;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace EVCB_OCPP.Packet.Messages.Security
- {
- public class SignedUpdateFirmwareRequest : IRequest
- {
- public SignedUpdateFirmwareRequest()
- {
- Action = Actions.SignedUpdateFirmware.ToString();
- }
-
-
-
-
-
- public int retries { set; get; }
-
-
-
-
-
- public int retryInterval { set; get; }
-
-
-
- [Required]
- public int requestId { set; get; }
-
-
-
- [Required]
- public FirmwareType firmware { set; get; }
- [JsonIgnore]
- public string Action { set; get; }
- public bool TransactionRelated()
- {
- return false;
- }
- public bool Validate()
- {
- return Validator.TryValidateObject(this, new ValidationContext(this), null, true);
- }
- }
- }
|