mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	
							parent
							
								
									c5b527f450
								
							
						
					
					
						commit
						96fbcb92e5
					
				
					 4 changed files with 11 additions and 6 deletions
				
			
		|  | @ -41,7 +41,8 @@ data class Contribution constructor( | |||
|     var dateModified: Date? = null, | ||||
|     var hasInvalidLocation : Int =  0, | ||||
|     var contentUri: Uri? = null, | ||||
|     var countryCode : String? = null | ||||
|     var countryCode : String? = null, | ||||
|     var imageSHA1 : String? = null | ||||
| ) : Parcelable { | ||||
| 
 | ||||
|     fun completeWith(media: Media): Contribution { | ||||
|  | @ -52,7 +53,8 @@ data class Contribution constructor( | |||
|         item: UploadItem, | ||||
|         sessionManager: SessionManager, | ||||
|         depictedItems: List<DepictedItem>, | ||||
|         categories: List<String> | ||||
|         categories: List<String>, | ||||
|         imageSHA1: String | ||||
|     ) : this( | ||||
|         Media( | ||||
|             formatCaptions(item.uploadMediaDetails), | ||||
|  | @ -67,7 +69,8 @@ data class Contribution constructor( | |||
|         dateCreatedSource = "", | ||||
|         depictedItems = depictedItems, | ||||
|         wikidataPlace = from(item.place), | ||||
|         contentUri = item.contentUri | ||||
|         contentUri = item.contentUri, | ||||
|         imageSHA1 = imageSHA1 | ||||
|     ) | ||||
| 
 | ||||
|     /** | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 源
						源