StatusNotificationConfirmation.cs 699 B

12345678910111213141516171819202122232425262728293031323334
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace EVCB_OCPP.Packet.Messages.Core
  9. {
  10. public class StatusNotificationConfirmation : IConfirmation
  11. {
  12. private IRequest _request = null;
  13. public IRequest GetRequest()
  14. {
  15. return _request;
  16. }
  17. public void SetRequest(IRequest request)
  18. {
  19. _request = request;
  20. }
  21. public bool Validate()
  22. {
  23. return Validator.TryValidateObject(this, new ValidationContext(this), null, true);
  24. }
  25. }
  26. }