-
Notifications
You must be signed in to change notification settings - Fork 49
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 #564 from vimeo/MPS-3106-Upload-Quota-Update
MPS-3106 Upload quota update
- Loading branch information
Showing
10 changed files
with
135 additions
and
2 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
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
31 changes: 31 additions & 0 deletions
31
models/src/main/java/com/vimeo/networking2/enums/UploadQuotaPeriodType.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.vimeo.networking2.enums | ||
|
||
/** | ||
* The renewal frequency of the upload quota. | ||
*/ | ||
enum class UploadQuotaPeriodType(override val value: String?) : StringValue { | ||
/** | ||
* The quota renews weekly. | ||
*/ | ||
WEEKLY("weekly"), | ||
|
||
/** | ||
* The quota renews monthly. | ||
*/ | ||
MONTHLY("monthly"), | ||
|
||
/** | ||
* The quota renews yearly. | ||
*/ | ||
YEARLY("yearly"), | ||
|
||
/** | ||
* The user doesn't have a periodic quota. | ||
*/ | ||
LIFETIME("lifetime"), | ||
|
||
/** | ||
* The quota renews on an unknown schedule. | ||
*/ | ||
UNKNOWN(null) | ||
} |
24 changes: 24 additions & 0 deletions
24
models/src/main/java/com/vimeo/networking2/enums/UploadQuotaUnitType.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.vimeo.networking2.enums | ||
|
||
/** | ||
* The unit type of the approach to calculating the upload quota (e.g. a byte size based approach or a video count | ||
* based approach) | ||
* | ||
*/ | ||
enum class UploadQuotaUnitType(override val value: String?) : StringValue { | ||
|
||
/** | ||
* The quota is calculated using count of videos. | ||
*/ | ||
COUNT("video_count"), | ||
|
||
/** | ||
* The quota is calculated using the size in bytes of the videos. | ||
*/ | ||
SIZE("video_size"), | ||
|
||
/** | ||
* The quota is calculated using an unknown approach. | ||
*/ | ||
UNKNOWN(null) | ||
} |
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