From 051ab353371e557e1bfd544fb7d974ccc2d337fc Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Mon, 6 Jul 2020 16:28:53 +0700 Subject: [PATCH] ApiController - Rename Stream_url -> StreamUrl --- AIParkingApplication/AIParkingApplicationForm.cs | 4 ++-- AIParkingApplication/ApiController.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AIParkingApplication/AIParkingApplicationForm.cs b/AIParkingApplication/AIParkingApplicationForm.cs index 80c3247..6370191 100644 --- a/AIParkingApplication/AIParkingApplicationForm.cs +++ b/AIParkingApplication/AIParkingApplicationForm.cs @@ -25,12 +25,12 @@ namespace AIParkingApplication Controls.Add(sidebar); c3Device = new C3DeviceController("192.168.1.200"); - laneIn = new LaneIn(1, this.configOnWeb.CameraData1.Stream_url, this.configOnWeb.CameraData2.Stream_url, c3Device, this.apiController, true, false, true); + laneIn = new LaneIn(1, this.configOnWeb.CameraData1.StreamUrl, this.configOnWeb.CameraData2.StreamUrl, c3Device, this.apiController, true, false, true); laneIn.BorderStyle = BorderStyle.FixedSingle; laneIn.Location = new System.Drawing.Point(sidebar.Location.X + sidebar.Width + 20, 0); Controls.Add(laneIn); - laneOut = new LaneOut(2, this.configOnWeb.CameraData3.Stream_url, this.configOnWeb.CameraData4.Stream_url, c3Device, this.apiController, true, false, true); + laneOut = new LaneOut(2, this.configOnWeb.CameraData3.StreamUrl, this.configOnWeb.CameraData4.StreamUrl, c3Device, this.apiController, true, false, true); laneOut.BorderStyle = BorderStyle.FixedSingle; laneOut.Location = new System.Drawing.Point(laneIn.Location.X + laneIn.Width + 20, 0); Controls.Add(laneOut); diff --git a/AIParkingApplication/ApiController.cs b/AIParkingApplication/ApiController.cs index b5390c8..6a60539 100644 --- a/AIParkingApplication/ApiController.cs +++ b/AIParkingApplication/ApiController.cs @@ -359,7 +359,7 @@ namespace AIParkingApplication public string Type { get; set; } [JsonProperty("stream_url")] - public string Stream_url { get; set; } + public string StreamUrl { get; set; } [JsonProperty("minWidth")] public double MinWidth { get; set; }