@@ -12,17 +12,20 @@ public class DocumentReaderApi
1212 {
1313 private readonly HealthcheckApi _healthcheckApi ;
1414 private readonly ProcessApi _processApi ;
15+ private readonly ResourcesApi _resourcesApi ;
1516
1617 public DocumentReaderApi ( string basePath )
1718 {
1819 this . _healthcheckApi = new HealthcheckApi ( basePath ) ;
1920 this . _processApi = new ProcessApi ( basePath ) ;
21+ this . _resourcesApi = new ResourcesApi ( basePath ) ;
2022 }
2123
2224 public DocumentReaderApi ( Configuration configuration )
2325 {
2426 this . _healthcheckApi = new HealthcheckApi ( configuration ) ;
2527 this . _processApi = new ProcessApi ( configuration ) ;
28+ this . _resourcesApi = new ResourcesApi ( configuration ) ;
2629 }
2730
2831 public IReadableConfiguration Configuration
@@ -32,6 +35,7 @@ public IReadableConfiguration Configuration
3235 {
3336 this . _healthcheckApi . Configuration = value ;
3437 this . _processApi . Configuration = value ;
38+ this . _resourcesApi . Configuration = value ;
3539 }
3640 }
3741
@@ -75,6 +79,21 @@ public async Task<RecognitionResponse> ProcessAsync(ProcessRequest processReques
7579 return new RecognitionResponse ( response ) ;
7680 }
7781
82+ public DatabaseDocumentList Doclist ( )
83+ {
84+ return this . _resourcesApi . Doclist ( ) ;
85+ }
86+
87+ public async Task < DatabaseDocumentList > DoclistAsync ( )
88+ {
89+ return await DoclistAsync ( new CancellationToken ( ) ) ;
90+ }
91+
92+ public async Task < DatabaseDocumentList > DoclistAsync ( CancellationToken cancellationToken = default ( CancellationToken ) )
93+ {
94+ return await this . _resourcesApi . DoclistAsync ( cancellationToken ) ;
95+ }
96+
7897 public DeviceInfo Ping ( string xRequestID )
7998 {
8099 return this . _healthcheckApi . Ping ( xRequestID ) ;
0 commit comments