49 const UploadUrls& target, std::vector<uint8_t> data,
51 std::function<
void(
double)> progressCallback = {});
55 const UploadUrls& target, std::string filePath,
57 std::function<
void(
double)> progressCallback = {});
Configuration for the audio.com.
Class used to track the upload operation.
static DataUploader & Get()
DataUploader(DataUploader &&)=delete
std::vector< std::shared_ptr< UploadOperation > > ResponsesList
DataUploader(const DataUploader &)=delete
void Upload(CancellationContextPtr cancellationContex, const ServiceConfig &config, const UploadUrls &target, std::vector< uint8_t > data, std::function< void(ResponseResult)> callback, std::function< void(double)> progressCallback={})
DataUploader & operator=(const DataUploader &)=delete
std::mutex mResponseMutex
void RemoveResponse(UploadOperation &response)
DataUploader & operator=(DataUploader &&)=delete
std::shared_ptr< CancellationContext > CancellationContextPtr