-
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 #475 from vimeo/MPS-1889-Manage-Teams
MPS-1889: Manage Teams support
- Loading branch information
Showing
10 changed files
with
469 additions
and
77 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
24 changes: 24 additions & 0 deletions
24
models/src/main/java/com/vimeo/networking2/TeamMembershipList.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 | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
import com.vimeo.networking2.common.Pageable | ||
|
||
/** | ||
* List of [TeamMemberships][TeamMembership] that can be paged. | ||
*/ | ||
@JsonClass(generateAdapter = true) | ||
data class TeamMembershipList( | ||
@Json(name = "total") | ||
override val total: Int? = null, | ||
@Json(name = "page") | ||
override val page: Int? = null, | ||
@Json(name = "per_page") | ||
override val perPage: Int? = null, | ||
@Json(name = "paging") | ||
override val paging: Paging? = null, | ||
@Json(name = "data") | ||
override val data: List<TeamMembership>? = null, | ||
@Json(name = "filtered_total") | ||
override val filteredTotal: Int? = null | ||
) : Pageable<TeamMembership> |
16 changes: 16 additions & 0 deletions
16
models/src/main/java/com/vimeo/networking2/params/GrantFolderPermissionForUser.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,16 @@ | ||
package com.vimeo.networking2.params | ||
|
||
import com.squareup.moshi.Json | ||
import com.squareup.moshi.JsonClass | ||
|
||
/** | ||
* Represents a User URI being used to grant permission for a particular folder. | ||
*/ | ||
@JsonClass(generateAdapter = true) | ||
data class GrantFolderPermissionForUser( | ||
/** | ||
* The user URI that will be added to the given Folder. | ||
*/ | ||
@Json(name = "uri") | ||
val uri: String | ||
) |
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
Oops, something went wrong.