mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Update RemoteFile and ReadRemoteFolder classes for including the remote_id property
This commit is contained in:
		
							parent
							
								
									5c06770280
								
							
						
					
					
						commit
						6befcdafe5
					
				| @ -164,6 +164,7 @@ public class ReadRemoteFolderOperation extends RemoteOperation { | ||||
|         file.setModifiedTimestamp(we.modifiedTimestamp()); | ||||
|         file.setEtag(we.etag()); | ||||
|         file.setPermissions(we.permissions()); | ||||
|         file.setRemoteId(we.remoteId()); | ||||
|         return file; | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -49,6 +49,7 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
| 	private long mModifiedTimestamp; | ||||
| 	private String mEtag; | ||||
| 	private String mPermissions; | ||||
| 	private String mRemoteId; | ||||
| 
 | ||||
| 	/**  | ||||
| 	 * Getters and Setters | ||||
| @ -110,6 +111,14 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
| 		this.mPermissions = permissions; | ||||
| 	} | ||||
| 
 | ||||
| 	public String getRemoteId() { | ||||
| 		return mRemoteId; | ||||
| 	} | ||||
| 
 | ||||
| 	public void setRemoteId(String remoteId) { | ||||
| 		this.mRemoteId = remoteId; | ||||
| 	} | ||||
| 
 | ||||
| 	public RemoteFile() { | ||||
| 		resetData(); | ||||
| 	} | ||||
| @ -137,6 +146,7 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
|         this.setModifiedTimestamp(we.modifiedTimestamp()); | ||||
|         this.setEtag(we.etag()); | ||||
|         this.setPermissions(we.permissions()); | ||||
|         this.setRemoteId(we.remoteId()); | ||||
| 	} | ||||
| 
 | ||||
| 	/** | ||||
| @ -150,6 +160,7 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
|         mModifiedTimestamp = 0; | ||||
|         mEtag = null; | ||||
|         mPermissions = null; | ||||
|         mRemoteId = null; | ||||
|     } | ||||
| 
 | ||||
|     /**  | ||||
| @ -185,6 +196,7 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
|         mModifiedTimestamp = source.readLong(); | ||||
|         mEtag = source.readString(); | ||||
|         mPermissions= source.readString(); | ||||
|         mRemoteId = source.readString(); | ||||
|     } | ||||
|      | ||||
| 	@Override | ||||
| @ -201,6 +213,7 @@ public class RemoteFile implements Parcelable, Serializable { | ||||
| 		dest.writeLong(mModifiedTimestamp); | ||||
| 		dest.writeString(mEtag); | ||||
| 		dest.writeString(mPermissions); | ||||
| 		dest.writeString(mRemoteId); | ||||
| 	} | ||||
|      | ||||
|      | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user