CustomerInformationRequest.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using EVCB_OCPP.Packet20.DataTypes;
  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.Packet20.Messages
  9. {
  10. public class CustomerInformationRequest
  11. {
  12. /// <summary>
  13. /// The Id of the request.
  14. /// </summary>
  15. [Required]
  16. public int RequestId { set; get; }
  17. /// <summary>
  18. /// Flag indicating whether the Charging Station
  19. ///should return NotifyCustomerInformationRequest
  20. ///messages containing information about the customer
  21. ///referred to.
  22. /// </summary>
  23. [Required]
  24. public bool Clear { set; get; }
  25. /// <summary>
  26. /// A (e.g. vendor specific) identifier of the
  27. ///customer this request refers to.This field contains a
  28. /// custom identifier other than IdToken and Certificate.One
  29. /// of the possible identifiers (customerIdentifier,
  30. /// customerIdToken or customerCertificate) should be in
  31. ///the request message.
  32. /// </summary>
  33. [StringLength(64, MinimumLength = 0)]
  34. public string CustomerIdentifier { set; get; }
  35. /// <summary>
  36. /// The IdToken of the customer this request refers
  37. /// to.One of the possible identifiers(customerIdentifier,
  38. /// customerIdToken or customerCertificate) should be in
  39. ///the request message.
  40. /// </summary>
  41. public IdTokenType IdToken { set; get; }
  42. /// <summary>
  43. /// The Certificate of the customer this request
  44. /// refers to.One of the possible identifiers
  45. /// (customerIdentifier, customerIdToken or
  46. /// customerCertificate) should be in the request message
  47. /// </summary>
  48. public CertificateHashDataType CustomerCertificate { set; get; }
  49. }
  50. }