SmallRefactor: {SaveLogParams} -> {SaveLogModel}

This commit is contained in:
Le Chau 2020-06-26 16:48:42 +07:00
parent d5089f189b
commit 30f5f14ee7

View File

@ -131,7 +131,7 @@ namespace AIParkingApplication
string FrameImageBase64 = Convert.ToBase64String(FrameImage.ToBytes()); string FrameImageBase64 = Convert.ToBase64String(FrameImage.ToBytes());
try try
{ {
var request = new SaveLogParams var request = new SaveLogModel
{ {
Direction = (direction == VehicleDirection.In) ? "in" : "out", Direction = (direction == VehicleDirection.In) ? "in" : "out",
LogID = logID, LogID = logID,
@ -231,7 +231,7 @@ namespace AIParkingApplication
public string Cost { get; set; } public string Cost { get; set; }
} }
public class SaveLogParams public class SaveLogModel
{ {
[JsonProperty("card")] [JsonProperty("card")]
public string CardID { get; set; } public string CardID { get; set; }