-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIScanApi.cs
More file actions
49 lines (47 loc) · 2.47 KB
/
IScanApi.cs
File metadata and controls
49 lines (47 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System.Threading.Tasks;
using Aspose.BarCode.Cloud.Sdk.Model;
namespace Aspose.BarCode.Cloud.Sdk.Interfaces
{
/// <summary>
/// ScanApi interface
/// </summary>
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IScanApi
{
/// <summary>
/// Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.BarCode.Cloud.Sdk.Api.ApiException">Thrown when fails to make API call</exception>
/// <param name="fileUrl">Url to barcode image</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BarcodeResponseList</returns>
Task<BarcodeResponseList> ScanAsync(string fileUrl, System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.BarCode.Cloud.Sdk.Api.ApiException">Thrown when fails to make API call</exception>
/// <param name="scanBase64Request">Barcode scan request</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BarcodeResponseList</returns>
Task<BarcodeResponseList> ScanBase64Async(ScanBase64Request scanBase64Request, System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Scan barcode from file in request body using POST requests with parameter in multipart form.
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Aspose.BarCode.Cloud.Sdk.Api.ApiException">Thrown when fails to make API call</exception>
/// <param name="file">Barcode image file</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of BarcodeResponseList</returns>
Task<BarcodeResponseList> ScanMultipartAsync(System.IO.Stream file, System.Threading.CancellationToken cancellationToken = default);
}
}