ApiController - remove method: GetApiPathFromServer
This commit is contained in:
parent
f4527e3eac
commit
7b05cbafa2
|
@ -28,7 +28,6 @@ namespace AIParkingApplication
|
||||||
Dispose();
|
Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Old API
|
|
||||||
public async Task<LoginDataModel> Login(LoginModel loginData)
|
public async Task<LoginDataModel> Login(LoginModel loginData)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -73,23 +72,6 @@ namespace AIParkingApplication
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async void GetApiPathFromServer()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var request = new PlateRequestEngineModel
|
|
||||||
{
|
|
||||||
};
|
|
||||||
HttpResponseMessage response = await httpClient.PostAsJsonAsync("/get-from-frame", request);
|
|
||||||
response.EnsureSuccessStatusCode();
|
|
||||||
var ocrResult = await response.Content.ReadAsAsync<OcrResult>();
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
Console.WriteLine($"SendEngineRequest : {ex.Message}");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public async Task<CardValidation> CheckCard(string cardNumber)
|
public async Task<CardValidation> CheckCard(string cardNumber)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue
Block a user