1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 07:56:19 +00:00

return sharees without exact match

This commit is contained in:
Christian Schabesberger 2020-10-13 14:25:15 +02:00 committed by Abel García de Prada
parent 7402c89a18
commit 26def4fbe2

View File

@ -41,11 +41,8 @@ data class ShareeOcsResponse(
@Json(name = "users")
val users: List<ShareeItem>?
) {
fun getFlatRepresentation()
fun getFlatRepresentationWithoutExact()
= ArrayList<ShareeItem>().apply {
if(exact != null) {
addAll(exact.getFlatRepresentation())
}
if(users != null) {
addAll(users)
}