mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Remove item_source and file_source
This commit is contained in:
		
							parent
							
								
									3441f4048c
								
							
						
					
					
						commit
						20c7c88a1f
					
				| @ -42,14 +42,11 @@ data class RemoteShare( | ||||
|     var sharedWithAdditionalInfo: String = "", | ||||
|     var name: String = "", | ||||
|     var shareLink: String = "", | ||||
|     var fileSource: String = "0", | ||||
|     var itemSource: String = "0", | ||||
|     var shareType: ShareType? = ShareType.UNKNOWN, | ||||
|     var permissions: Int = DEFAULT_PERMISSION, | ||||
|     var sharedDate: Long = INIT_SHARED_DATE, | ||||
|     var expirationDate: Long = INIT_EXPIRATION_DATE_IN_MILLIS, | ||||
|     var isFolder: Boolean = path.endsWith(File.separator), | ||||
|     var userId: Long = 0 | ||||
|     var isFolder: Boolean = path.endsWith(File.separator) | ||||
| ) { | ||||
| 
 | ||||
|     companion object { | ||||
|  | ||||
| @ -244,10 +244,6 @@ class ShareXMLParser { | ||||
|                     fixPathForFolder(remoteShare) | ||||
|                 } | ||||
| 
 | ||||
|                 name.equals(NODE_ITEM_SOURCE, ignoreCase = true) -> { | ||||
|                     remoteShare.itemSource = readNode(parser, NODE_ITEM_SOURCE) | ||||
|                 } | ||||
| 
 | ||||
|                 name.equals(NODE_PARENT, ignoreCase = true) -> { | ||||
|                     readNode(parser, NODE_PARENT) | ||||
|                 } | ||||
| @ -261,10 +257,6 @@ class ShareXMLParser { | ||||
|                     remoteShare.shareWith = readNode(parser, NODE_SHARE_WITH) | ||||
|                 } | ||||
| 
 | ||||
|                 name.equals(NODE_FILE_SOURCE, ignoreCase = true) -> { | ||||
|                     remoteShare.fileSource = readNode(parser, NODE_FILE_SOURCE) | ||||
|                 } | ||||
| 
 | ||||
|                 name.equals(NODE_PATH, ignoreCase = true) -> { | ||||
|                     remoteShare.path = readNode(parser, NODE_PATH) | ||||
|                     fixPathForFolder(remoteShare) | ||||
| @ -401,11 +393,9 @@ class ShareXMLParser { | ||||
|         private const val NODE_ELEMENT = "element" | ||||
|         private const val NODE_ID = "id" | ||||
|         private const val NODE_ITEM_TYPE = "item_type" | ||||
|         private const val NODE_ITEM_SOURCE = "item_source" | ||||
|         private const val NODE_PARENT = "parent" | ||||
|         private const val NODE_SHARE_TYPE = "share_type" | ||||
|         private const val NODE_SHARE_WITH = "share_with" | ||||
|         private const val NODE_FILE_SOURCE = "file_source" | ||||
|         private const val NODE_PATH = "path" | ||||
|         private const val NODE_PERMISSIONS = "permissions" | ||||
|         private const val NODE_STIME = "stime" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user