public ActivityDetails(ParkingInputModel idata)
 {
     SessionID     = idata.SessionId;
     INAgentMACID  = idata.IsEntrance ? idata.AgentMACID : null;
     OUTAgentMACID = !idata.IsEntrance ? idata.AgentMACID:null;
     PlateNumber   = new PlateNumberDetails(idata);
 }
 public PlateNumberDetails(ParkingInputModel idata)
 {
     ImageUrl  = idata.PlatNumberImageUrl;
     number    = idata.PlatNumber;
     Timestamp = idata.TimeStamp;
 }