mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
#3847 Convert Media and Contribution to Kotlin Data Classes - convert to data classes - compose a contribution with a media (#3848)
Co-authored-by: Vivek Maskara <maskaravivek@gmail.com>
This commit is contained in:
parent
3361155fad
commit
cc2f14dab8
34 changed files with 334 additions and 741 deletions
|
|
@ -44,10 +44,11 @@ fun media(
|
|||
pageId: String = "pageId",
|
||||
categories: List<String>? = listOf("categories"),
|
||||
coordinates: LatLng? = LatLng(0.0, 0.0, 0.0f),
|
||||
captions: Map<String?, String?> = mapOf("en" to "caption"),
|
||||
descriptions: Map<String?, String?> = mapOf("en" to "description"),
|
||||
captions: Map<String, String> = mapOf("en" to "caption"),
|
||||
descriptions: Map<String, String> = mapOf("en" to "description"),
|
||||
depictionIds: List<String> = listOf("depictionId")
|
||||
) = Media(
|
||||
pageId,
|
||||
thumbUrl,
|
||||
imageUrl,
|
||||
filename,
|
||||
|
|
@ -56,7 +57,6 @@ fun media(
|
|||
license,
|
||||
licenseUrl,
|
||||
creator,
|
||||
pageId,
|
||||
categories,
|
||||
coordinates,
|
||||
captions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue