-
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.
Merge pull request #92 from apivideo/feature/java_rate_limit
Feature/java rate limit
- Loading branch information
Showing
10 changed files
with
100 additions
and
34 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
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
26 changes: 16 additions & 10 deletions
26
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,38 @@ | ||
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, boolean isLastPart, | ||
UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
|
||
ApiResponse<Video> uploadPartWithHttpInfo(File part, Integer partId, boolean isLastPart, | ||
UploadPartProgressListener uploadProgressListener) throws ApiException; | ||
} |
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
3 changes: 0 additions & 3 deletions
3
src/main/java/video/api/uploader/api/work/WorkManagerExtensions.kt
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
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