EtcPlateCatchedArgs.cs 794 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. namespace HKCarPlateRecognize_App
  4. {
  5. public class EtcCarPlateCatched
  6. {
  7. private int color;
  8. private static Dictionary<int, string> colorDic = new Dictionary<int, string> { { 0, "蓝色" }, { 1, "绿色" }, { 2, "黑色" }, { 3, "黄色" }, { 4, " 其他" } };
  9. //车牌号
  10. public string carNumber { get; set; }
  11. //加油站编号
  12. public string appId { get; set; }
  13. //车牌颜色
  14. public string carColor
  15. {
  16. get { return colorDic[color]; }
  17. set { color = int.Parse(value); }
  18. }
  19. //入场时间
  20. public string timeStamp { get; set; }
  21. //加油枪/加油机屏幕编号
  22. public string gasGun { get; set; }
  23. }
  24. }