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:
committed by
Abel García de Prada
parent
6ec1bd2bb2
commit
257494a9dc
-7
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user