com.onfido.api.client.UploadLiveVideoAPI Maven / Gradle / Ivy
package com.onfido.api.client;
import com.onfido.api.client.data.LiveVideoChallenges;
import com.onfido.api.client.data.LiveVideoLanguage;
import com.onfido.api.client.data.LiveVideoUpload;
import com.onfido.api.client.data.PayloadIntegrity;
import com.onfido.api.client.data.SdkUploadMetaData;
import java.util.List;
import io.reactivex.rxjava3.core.Single;
import okhttp3.RequestBody;
class UploadLiveVideoAPI {
private final OnfidoService onfidoService;
UploadLiveVideoAPI(
OnfidoService onfidoService
) {
this.onfidoService = onfidoService;
}
Single upload(String fileName,
String fileType,
byte[] data,
String challengeId,
List challenges,
long challengeSwitchTimestamp,
List languages,
SdkUploadMetaData sdkUploadMetaData,
String sdkSource,
String sdkVersion,
PayloadIntegrity payloadIntegrity) {
MultipartLiveVideoRequestBuilder builder = new MultipartLiveVideoRequestBuilder(sdkSource, sdkVersion);
RequestBody body = builder.setMultipartRequestBody(
fileName,
fileType,
data,
challengeId,
challenges,
challengeSwitchTimestamp,
languages,
sdkUploadMetaData,
payloadIntegrity
).build();
return onfidoService.uploadLiveVideo(body);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy