mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +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 {
|
||||
/**
|
||||
* The language code, e.g., "en" or "fr".
|
||||
* @param languageCode The language code.
|
||||
* @property languageCode The language code.
|
||||
*/
|
||||
var languageCode: String? = null
|
||||
|
||||
/**
|
||||
* The description text for the item being uploaded.
|
||||
* @param descriptionText The description text.
|
||||
* @property descriptionText The description text.
|
||||
*/
|
||||
var descriptionText: String? = null
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Returns true if the description text is null or empty.
|
||||
*/
|
||||
val isEmpty: Boolean
|
||||
get() = descriptionText == null || descriptionText!!.isEmpty()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue