예제 #1
0
 public override string Format()
 {
     return(JsonConvert.SerializeObject(new
     {
         TollId = TollId.ToString(CultureInfo.InvariantCulture),
         ExitTime = ExitTime.ToString("o"),
         LicensePlate,
     }));
 }
예제 #2
0
 public override string Format()
 {
     return(JsonConvert.SerializeObject(new
     {
         TollId = TollId.ToString(CultureInfo.InvariantCulture),
         EntryTime = EntryTime.ToString("o"),
         LicensePlate,
         State,
         CarModel.Make,
         CarModel.Model,
         VehicleType = CarModel.VehicleType.ToString(CultureInfo.InvariantCulture),
         VehicleWeight = CarModel.VehicleWeight.ToString(CultureInfo.InvariantCulture),
         Toll = TollAmount.ToString(CultureInfo.InvariantCulture),
         Tag = Tag.ToString(CultureInfo.InvariantCulture)
     }));
 }