Skip to content

Commit 79526b2

Browse files
committed
DocumentReaderApi should not inherit default api
1 parent e8d8a11 commit 79526b2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/Regula.DocumentReader.WebClient/Api/DocumentReaderApi.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44

55
namespace Regula.DocumentReader.WebClient.Api
66
{
7-
public class DocumentReaderApi : DefaultApi
7+
public class DocumentReaderApi
88
{
9+
private readonly DefaultApi _defaultApi;
10+
private readonly ProcessApi _processApi;
11+
912
public DocumentReaderApi(string basePath)
10-
: base(basePath) { }
13+
{
14+
this._defaultApi = new DefaultApi(basePath);
15+
this._processApi = new ProcessApi(basePath);
16+
}
1117

1218
private string License { get; set; }
1319

@@ -18,7 +24,11 @@ public RecognitionResponse Process(ProcessRequest processRequest)
1824
else
1925
processRequest.SystemInfo.License = License;
2026

21-
return new RecognitionResponse(ApiProcess(processRequest));
27+
return new RecognitionResponse(this._processApi.ApiProcess(processRequest));
28+
}
29+
public DeviceInfo Ping ()
30+
{
31+
return this._defaultApi.Ping();
2232
}
2333

2434
public DocumentReaderApi WithLicense(string license)

0 commit comments

Comments
 (0)