Skip to content

Commit d8eccaf

Browse files
docs: Add method documentation
.... to make codacy happy Signed-off-by: Andy Scherzinger <[email protected]>
1 parent 4accc4e commit d8eccaf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/src/main/java/it/niedermann/owncloud/notes/share/repository/ShareRepository.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ class ShareRepository(private val applicationContext: Context, private val accou
138138

139139
private fun LinkedTreeMap<*, *>.getList(key: String): ArrayList<*>? = this[key] as? ArrayList<*>
140140

141+
/**
142+
* Searches for potential share recipients (sharees).
143+
*
144+
* Queries the server for users, groups, remotes, emails, circles, and rooms that match the provided criteria.
145+
*
146+
* @param searchString Query string.
147+
* @param page Page number for paginated results.
148+
* @param perPage Number of results to return per page.
149+
* @return [ArrayList] of [JSONObject]s representing the share recipients.
150+
*/
141151
fun getSharees(searchString: String, page: Int, perPage: Int): ArrayList<JSONObject> {
142152
val shareAPI = apiProvider.getShareAPI(applicationContext, account)
143153
val call = shareAPI.getSharees(

0 commit comments

Comments
 (0)