RequestStartTransactionResponse.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. using EVCB_OCPP.Packet20.DataTypes.EnumTypes;
  2. using Newtonsoft.Json;
  3. using Newtonsoft.Json.Converters;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace EVCB_OCPP.Packet20.Messages
  11. {
  12. public class RequestStartTransactionResponse
  13. {
  14. /// <summary>
  15. /// Status indicating whether the Charging Station
  16. ///accepts the request to start a transaction.
  17. /// </summary>
  18. [Required]
  19. [JsonConverter(typeof(StringEnumConverter))]
  20. public RequestStartStopStatusEnumType Status { set; get; }
  21. /// <summary>
  22. /// When the transaction was already started by
  23. ///the Charging Station before the
  24. /// RequestStartTransactionRequest was received, for
  25. ///example: cable plugged in first.This contains the
  26. ///transactionId of the already started transaction.
  27. /// </summary>
  28. public string TransactionId { set; get; }
  29. }
  30. }