mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	
							parent
							
								
									7cfa8078f4
								
							
						
					
					
						commit
						bf4b7e2efc
					
				
					 3 changed files with 243 additions and 2 deletions
				
			
		|  | @ -36,7 +36,7 @@ data class DepictedItem constructor( | |||
|         place.longDescription | ||||
|     ) | ||||
| 
 | ||||
|     constructor(entity: Entities.Entity, name: String, description: String) : this( | ||||
|     private constructor(entity: Entities.Entity, name: String, description: String) : this( | ||||
|         name, | ||||
|         description, | ||||
|         entity[IMAGE].primaryImageValue?.let { | ||||
|  | @ -69,7 +69,7 @@ private fun List<Statement_partial>?.toIds(): List<String> { | |||
| } | ||||
| 
 | ||||
| private val List<Statement_partial>?.primaryImageValue: DataValue.ValueString? | ||||
|     get() = this?.first()?.mainSnak?.dataValue as? DataValue.ValueString | ||||
|     get() = this?.firstOrNull()?.mainSnak?.dataValue as? DataValue.ValueString | ||||
| 
 | ||||
| operator fun Entities.Entity.get(property: WikidataProperties) = | ||||
|     statements?.get(property.propertyName) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Seán Mac Gillicuddy
						Seán Mac Gillicuddy