mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
docs: clean up invalid KDoc tags on property and add docs to isEmpty
This commit is contained in:
parent
ef2703b7e2
commit
3bf25889ca
1 changed files with 6 additions and 6 deletions
|
|
@ -6,29 +6,29 @@ package fr.free.nrw.commons.upload
|
||||||
class Description {
|
class Description {
|
||||||
/**
|
/**
|
||||||
* The language code, e.g., "en" or "fr".
|
* The language code, e.g., "en" or "fr".
|
||||||
* @param languageCode The language code.
|
* @property languageCode The language code.
|
||||||
*/
|
*/
|
||||||
var languageCode: String? = null
|
var languageCode: String? = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The description text for the item being uploaded.
|
* The description text for the item being uploaded.
|
||||||
* @param descriptionText The description text.
|
* @property descriptionText The description text.
|
||||||
*/
|
*/
|
||||||
var descriptionText: String? = null
|
var descriptionText: String? = null
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The index of the language selected in a spinner with [SpinnerLanguagesAdapter].
|
* The index of the language selected in a spinner with [SpinnerLanguagesAdapter].
|
||||||
* @param selectedLanguageIndex The index of the selected language.
|
* @property selectedLanguageIndex The index of the selected language.
|
||||||
*/
|
*/
|
||||||
var selectedLanguageIndex = -1
|
var selectedLanguageIndex = -1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the description was added manually (by the user or programmatically).
|
* Indicates if the description was added manually (by the user or programmatically).
|
||||||
* @param manuallyAdded Sets to true if the description was manually added by the user.
|
|
||||||
* @return True if the description was manually added.
|
|
||||||
*/
|
*/
|
||||||
var isManuallyAdded = false
|
var isManuallyAdded = false
|
||||||
|
/**
|
||||||
|
* Returns true if the description text is null or empty.
|
||||||
|
*/
|
||||||
val isEmpty: Boolean
|
val isEmpty: Boolean
|
||||||
get() = descriptionText == null || descriptionText!!.isEmpty()
|
get() = descriptionText == null || descriptionText!!.isEmpty()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue