-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(java): add async and withHttpInfo methods
- Loading branch information
1 parent
d850558
commit 3f3ea8d
Showing
4 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 13 additions & 10 deletions
23
src/main/java/video/api/uploader/api/upload/IProgressiveUploadSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,35 @@ | ||
package video.api.uploader.api.upload; | ||
|
||
import video.api.uploader.api.ApiException; | ||
import video.api.uploader.api.ApiResponse; | ||
import video.api.uploader.api.models.Video; | ||
|
||
import java.io.File; | ||
|
||
public interface IProgressiveUploadSession { | ||
public String getVideoId(); | ||
String getVideoId(); | ||
|
||
public String getToken(); | ||
String getToken(); | ||
|
||
public Video uploadPart(File part) throws ApiException; | ||
Video uploadPart(File part) throws ApiException; | ||
|
||
public Video uploadLastPart(File part) throws ApiException; | ||
Video uploadLastPart(File part) throws ApiException; | ||
|
||
public Video uploadPart(File part, UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
Video uploadPart(File part, UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
|
||
public Video uploadLastPart(File part, UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
Video uploadLastPart(File part, UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
|
||
public Video uploadPart(File part, boolean isLastPart, UploadPartProgressListener uploadProgressListener) | ||
Video uploadPart(File part, boolean isLastPart, UploadPartProgressListener uploadProgressListener) | ||
throws ApiException; | ||
|
||
public Video uploadPart(File part, Integer partId, UploadPartProgressListener uploadProgressListener) | ||
Video uploadPart(File part, Integer partId, UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
|
||
Video uploadLastPart(File part, Integer partId, UploadPartProgressListener uploadProgressListener) | ||
throws ApiException; | ||
|
||
public Video uploadLastPart(File part, Integer partId, UploadPartProgressListener uploadProgressListener) | ||
Video uploadPart(File part, Integer partId, boolean isLastPart, UploadPartProgressListener uploadProgressListener) | ||
throws ApiException; | ||
|
||
public Video uploadPart(File part, Integer partId, boolean isLastPart, | ||
ApiResponse<Video> uploadPartWithHttpInfo(File part, Integer partId, boolean isLastPart, | ||
UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
} |