1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-13 09:23:00 +00:00

apply suggested changes

delete unused const values

bla
This commit is contained in:
Christian Schabesberger
2020-10-21 14:11:32 +02:00
committed by Abel García de Prada
parent 6ec1bd2bb2
commit 257494a9dc
5 changed files with 8 additions and 10 deletions
@@ -164,12 +164,5 @@ class GetRemoteShareesOperation
// Arguments - constant values
private const val VALUE_FORMAT = "json"
private const val VALUE_ITEM_TYPE = "file" // to get the server search for users / groups
// JSON Node names
const val NODE_VALUE = "value"
const val PROPERTY_LABEL = "label"
const val PROPERTY_SHARE_TYPE = "shareType"
const val PROPERTY_SHARE_WITH = "shareWith"
const val PROPERTY_SHARE_WITH_ADDITIONAL_INFO = "shareWithAdditionalInfo"
}
}
@@ -105,7 +105,6 @@ enum class ShareType constructor(val value: Int) {
FEDERATED(6);
companion object {
private val values = values();
fun fromValue(value: Int) = values.firstOrNull { it.value == value }
fun fromValue(value: Int) = values().firstOrNull { it.value == value }
}
}