Skip to content

Commit

Permalink
Switch folder Uri to Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
WhosNickDoglio committed Mar 15, 2021
1 parent d2aab99 commit 24a3072
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions request/src/main/java/com/vimeo/networking2/VimeoApiClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1585,8 +1585,8 @@ interface VimeoApiClient {
* @param team The [Team] the user is being added to.
* @param email The email address for the user being added.
* @param permissionLevel The intended [TeamRoleType] for the user being added.
* @param folderUri If the user is being added as a [TeamRoleType.CONTRIBUTOR] or [TeamRoleType.VIEWER] a URI for
* the Folder they can contribute or view also needs to be added.
* @param folder If the user is being added as a [TeamRoleType.CONTRIBUTOR] or [TeamRoleType.VIEWER] the
* [Folder] they can contribute or view also needs to be added.
* @param queryParams Optional map used to refine the response from the API.
* @param callback The callback which will be notified of the request completion.
*
Expand All @@ -1596,7 +1596,7 @@ interface VimeoApiClient {
team: Team,
email: String,
permissionLevel: TeamRoleType,
folderUri: String?,
folder: Folder?,
queryParams: Map<String, String>?,
callback: VimeoCallback<TeamMembership>
): VimeoRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ internal class MutableVimeoApiClientDelegate(var actual: VimeoApiClient? = null)
team: Team,
email: String,
permissionLevel: TeamRoleType,
folderUri: String?,
folder: Folder?,
queryParams: Map<String, String>?,
callback: VimeoCallback<TeamMembership>
): VimeoRequest = client.addUserToTeam(team, email, permissionLevel, folderUri, queryParams, callback)
): VimeoRequest = client.addUserToTeam(team, email, permissionLevel, folder, queryParams, callback)

override fun removeUserFromTeam(
uri: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ internal class VimeoApiClientImpl(
team: Team,
email: String,
permissionLevel: TeamRoleType,
folderUri: String?,
folder: Folder?,
queryParams: Map<String, String>?,
callback: VimeoCallback<TeamMembership>
): VimeoRequest {
Expand All @@ -595,7 +595,7 @@ internal class VimeoApiClientImpl(
safeUri,
email,
permissionLevel,
folderUri,
folder?.uri,
queryParams.orEmpty()
).enqueue(callback)
}
Expand Down

0 comments on commit 24a3072

Please sign in to comment.