using System; using System.Collections.Generic; namespace HKCarPlateRecognize_App { public class EtcCarPlateCatched { private int color; private static Dictionary colorDic = new Dictionary { { 0, "蓝色" }, { 1, "绿色" }, { 2, "黑色" }, { 3, "黄色" }, { 4, " 其他" } }; //车牌号 public string carNumber { get; set; } //加油站编号 public string appId { get; set; } //车牌颜色 public string carColor { get { return colorDic[color]; } set { color = int.Parse(value); } } //入场时间 public string timeStamp { get; set; } //加油枪/加油机屏幕编号 public string gasGun { get; set; } } }