Interface IDataSetClient

Namespace: IndicoV2-DataSets
Assembly: IndicoV2-Abstractions-dll

public interface IDataSetClient

Methods

AddFilesAsync(int, IEnumerable<string>, CancellationToken)

Add files to a dataset

Task<IDataSetAddFilesResult> AddFilesAsync(int dataSetId, IEnumerable<string> filePaths, CancellationToken cancellationToken)

Parameters

dataSetId int

ID of the dataset

filePaths IEnumerable[string](https://learn-microsoft-com/dotnet/api/system-string)\

List of pathnames to the dataset files

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<IDataSetAddFilesResult>

FileUploadStatusAsync(int, CancellationToken)

Get the status of dataset file upload

Task<IDatasetUploadStatusResult> FileUploadStatusAsync(int dataSetId, CancellationToken cancellationToken)

Parameters

dataSetId int

id of the dataset to query

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<IDatasetUploadStatusResult>

ListAsync(CancellationToken)

Lists s

Task<IEnumerable<IDataSet>> ListAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[ienumerable](https://learn-microsoft-com/dotnet/api/system-collections-generic-ienumerable\-1)<[idataset](indicov2-datasets-models-idataset)\>

ListFullAsync(int?, CancellationToken)

Lists s

Task<IEnumerable<IDataSetFull>> ListFullAsync(int? limit = null, CancellationToken cancellationToken = default)

Parameters

limit int?

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task[ienumerable](https://learn-microsoft-com/dotnet/api/system-collections-generic-ienumerable\-1)<[idatasetfull](indicov2-datasets-models-idatasetfull)\>

ProcessCsvAsync(int, IEnumerable<int>, CancellationToken)

Process CSV associated with a dataset and add corresponding data to the dataset

Task<IDataSetProcessCsvResult> ProcessCsvAsync(int dataSetId, IEnumerable<int> fileIds, CancellationToken cancellationToken)

Parameters

dataSetId int

ID of the dataset

fileIds IEnumerable[int](https://learn-microsoft-com/dotnet/api/system-int32)\

IDs of the CSV datafiles to process

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<IDataSetProcessCsvResult>

ProcessFileAsync(int, IEnumerable<int>, CancellationToken)

Process files associated with a dataset and add corresponding data to the dataset

Task<IDataSetProcessFilesResult> ProcessFileAsync(int dataSetId, IEnumerable<int> fileIds, CancellationToken cancellationToken)

Parameters

dataSetId int

ID of the dataset

fileIds IEnumerable[int](https://learn-microsoft-com/dotnet/api/system-int32)\

IDs of the datafiles to process

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<IDataSetProcessFilesResult>