ServerMessage.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace EVCB_OCPP.Domain.Models.Database
  10. {
  11. /// <summary>
  12. /// 需確認的指令發送檔
  13. /// </summary>
  14. [Table("ServerMessage")]
  15. public partial class ServerMessage
  16. {
  17. public ServerMessage()
  18. {
  19. ReceivedOn = new DateTime(1991, 1, 1);
  20. }
  21. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  22. [Key]
  23. public int Id { get; set; }
  24. /// <summary>
  25. /// 機器的客戶自訂ID
  26. /// </summary>
  27. [StringLength(128)]
  28. public string ChargeBoxId { get; set; }
  29. /// <summary>
  30. /// 隨機序號
  31. /// </summary>
  32. [StringLength(36)]
  33. public string SerialNo { get; set; }
  34. /// <summary>
  35. /// 輸入傳送Action
  36. /// </summary>
  37. [StringLength(30)]
  38. public string OutAction { get; set; }
  39. /// <summary>
  40. /// 輸入傳送資料
  41. /// </summary>
  42. [StringLength(500)]
  43. public string OutRequest { get; set; }
  44. /// <summary>
  45. /// 收到傳送資料
  46. /// </summary>
  47. public string InMessage { get; set; }
  48. public DateTime CreatedOn { get; set; }
  49. [StringLength(36)]
  50. public string CreatedBy { get; set; }
  51. /// <summary>
  52. /// 收到輸入指令
  53. /// </summary>
  54. public DateTime ReceivedOn { get; set; }
  55. }
  56. }