mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Merge pull request #55 from owncloud/update_propfind_for_server_8.1
Update propfind for server 8.1 (WIP)
This commit is contained in:
commit
0dd68c1f65
@ -37,12 +37,19 @@ import android.net.Uri;
|
|||||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||||
|
|
||||||
public class WebdavEntry {
|
public class WebdavEntry {
|
||||||
private static final String NAMESPACE_OC = "http://owncloud.org/ns";
|
public static final String NAMESPACE_OC = "http://owncloud.org/ns";
|
||||||
private static final String EXTENDED_PROPERTY_NAME_PERMISSIONS = "permissions";
|
public static final String EXTENDED_PROPERTY_NAME_PERMISSIONS = "permissions";
|
||||||
private static final String EXTENDED_PROPERTY_NAME_REMOTE_ID = "id";
|
public static final String EXTENDED_PROPERTY_NAME_REMOTE_ID = "id";
|
||||||
|
public static final String EXTENDED_PROPERTY_NAME_SIZE = "size";
|
||||||
|
|
||||||
|
public static final String PROPERTY_QUOTA_USED_BYTES = "quota-used-bytes";
|
||||||
|
public static final String PROPERTY_QUOTA_AVAILABLE_BYTES = "quota-available-bytes";
|
||||||
|
|
||||||
|
private static final int CODE_PROP_NOT_FOUND = 404;
|
||||||
|
|
||||||
private String mName, mPath, mUri, mContentType, mEtag, mPermissions, mRemoteId;
|
private String mName, mPath, mUri, mContentType, mEtag, mPermissions, mRemoteId;
|
||||||
private long mContentLength, mCreateTimestamp, mModifiedTimestamp;
|
private long mContentLength, mCreateTimestamp, mModifiedTimestamp, mSize;
|
||||||
|
private long mQuotaUsedBytes, mQuotaAvailableBytes;
|
||||||
|
|
||||||
public WebdavEntry(MultiStatusResponse ms, String splitElement) {
|
public WebdavEntry(MultiStatusResponse ms, String splitElement) {
|
||||||
resetData();
|
resetData();
|
||||||
@ -52,6 +59,9 @@ public class WebdavEntry {
|
|||||||
mPath = mUri.split(splitElement, 2)[1];
|
mPath = mUri.split(splitElement, 2)[1];
|
||||||
|
|
||||||
int status = ms.getStatus()[0].getStatusCode();
|
int status = ms.getStatus()[0].getStatusCode();
|
||||||
|
if ( status == CODE_PROP_NOT_FOUND ) {
|
||||||
|
status = ms.getStatus()[1].getStatusCode();
|
||||||
|
}
|
||||||
DavPropertySet propSet = ms.getProperties(status);
|
DavPropertySet propSet = ms.getProperties(status);
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
DavProperty prop = propSet.get(DavPropertyName.DISPLAYNAME);
|
DavProperty prop = propSet.get(DavPropertyName.DISPLAYNAME);
|
||||||
@ -66,29 +76,37 @@ public class WebdavEntry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// use unknown mimetype as default behavior
|
// use unknown mimetype as default behavior
|
||||||
|
// {DAV:}getcontenttype
|
||||||
mContentType = "application/octet-stream";
|
mContentType = "application/octet-stream";
|
||||||
prop = propSet.get(DavPropertyName.GETCONTENTTYPE);
|
prop = propSet.get(DavPropertyName.GETCONTENTTYPE);
|
||||||
if (prop != null) {
|
if (prop != null) {
|
||||||
mContentType = (String) prop.getValue();
|
mContentType = (String) prop.getValue();
|
||||||
// dvelasco: some builds of ownCloud server 4.0.x added a trailing ';' to the MIME type ; if looks fixed, but let's be cautious
|
// dvelasco: some builds of ownCloud server 4.0.x added a trailing ';'
|
||||||
|
// to the MIME type ; if looks fixed, but let's be cautious
|
||||||
if (mContentType.indexOf(";") >= 0) {
|
if (mContentType.indexOf(";") >= 0) {
|
||||||
mContentType = mContentType.substring(0, mContentType.indexOf(";"));
|
mContentType = mContentType.substring(0, mContentType.indexOf(";"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if it's a folder in the standard way: see RFC2518 12.2 . RFC4918 14.3
|
// check if it's a folder in the standard way: see RFC2518 12.2 . RFC4918 14.3
|
||||||
|
// {DAV:}resourcetype
|
||||||
prop = propSet.get(DavPropertyName.RESOURCETYPE);
|
prop = propSet.get(DavPropertyName.RESOURCETYPE);
|
||||||
if (prop!= null) {
|
if (prop!= null) {
|
||||||
Object value = prop.getValue();
|
Object value = prop.getValue();
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
mContentType = "DIR"; // a specific attribute would be better, but this is enough; unless while we have no reason to distinguish MIME types for folders
|
mContentType = "DIR"; // a specific attribute would be better,
|
||||||
|
// but this is enough;
|
||||||
|
// unless while we have no reason to distinguish
|
||||||
|
// MIME types for folders
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// {DAV:}getcontentlength
|
||||||
prop = propSet.get(DavPropertyName.GETCONTENTLENGTH);
|
prop = propSet.get(DavPropertyName.GETCONTENTLENGTH);
|
||||||
if (prop != null)
|
if (prop != null)
|
||||||
mContentLength = Long.parseLong((String) prop.getValue());
|
mContentLength = Long.parseLong((String) prop.getValue());
|
||||||
|
|
||||||
|
// {DAV:}getlastmodified
|
||||||
prop = propSet.get(DavPropertyName.GETLASTMODIFIED);
|
prop = propSet.get(DavPropertyName.GETLASTMODIFIED);
|
||||||
if (prop != null) {
|
if (prop != null) {
|
||||||
Date d = WebdavUtils
|
Date d = WebdavUtils
|
||||||
@ -103,12 +121,24 @@ public class WebdavEntry {
|
|||||||
mCreateTimestamp = (d != null) ? d.getTime() : 0;
|
mCreateTimestamp = (d != null) ? d.getTime() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// {DAV:}getetag
|
||||||
prop = propSet.get(DavPropertyName.GETETAG);
|
prop = propSet.get(DavPropertyName.GETETAG);
|
||||||
if (prop != null) {
|
if (prop != null) {
|
||||||
mEtag = (String) prop.getValue();
|
mEtag = (String) prop.getValue();
|
||||||
mEtag = mEtag.substring(1, mEtag.length()-1);
|
mEtag = mEtag.substring(1, mEtag.length()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// {DAV:}quota-used-bytes
|
||||||
|
prop = propSet.get(DavPropertyName.create(PROPERTY_QUOTA_USED_BYTES));
|
||||||
|
if (prop != null) {
|
||||||
|
mQuotaUsedBytes = Long.parseLong((String) prop.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
|
// {DAV:}quota-available-bytes
|
||||||
|
prop = propSet.get(DavPropertyName.create(PROPERTY_QUOTA_AVAILABLE_BYTES));
|
||||||
|
if (prop != null) {
|
||||||
|
mQuotaAvailableBytes = Long.parseLong((String) prop.getValue());
|
||||||
|
}
|
||||||
// OC permissions property <oc:permissions>
|
// OC permissions property <oc:permissions>
|
||||||
prop = propSet.get(
|
prop = propSet.get(
|
||||||
EXTENDED_PROPERTY_NAME_PERMISSIONS, Namespace.getNamespace(NAMESPACE_OC)
|
EXTENDED_PROPERTY_NAME_PERMISSIONS, Namespace.getNamespace(NAMESPACE_OC)
|
||||||
@ -125,6 +155,15 @@ public class WebdavEntry {
|
|||||||
mRemoteId = prop.getValue().toString();
|
mRemoteId = prop.getValue().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: is it necessary?
|
||||||
|
// OC size property <oc:size>
|
||||||
|
prop = propSet.get(
|
||||||
|
EXTENDED_PROPERTY_NAME_SIZE, Namespace.getNamespace(NAMESPACE_OC)
|
||||||
|
);
|
||||||
|
if (prop != null) {
|
||||||
|
mSize = Long.parseLong((String) prop.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log_OC.e("WebdavEntry",
|
Log_OC.e("WebdavEntry",
|
||||||
"General fuckup, no status for webdav response");
|
"General fuckup, no status for webdav response");
|
||||||
@ -179,8 +218,23 @@ public class WebdavEntry {
|
|||||||
return mRemoteId;
|
return mRemoteId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long size(){
|
||||||
|
return mSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long quotaUsedBytes() {
|
||||||
|
return mQuotaUsedBytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long quotaAvailableBytes() {
|
||||||
|
return mQuotaAvailableBytes;
|
||||||
|
}
|
||||||
|
|
||||||
private void resetData() {
|
private void resetData() {
|
||||||
mName = mUri = mContentType = mPermissions = null; mRemoteId = null;
|
mName = mUri = mContentType = mPermissions = null; mRemoteId = null;
|
||||||
mContentLength = mCreateTimestamp = mModifiedTimestamp = 0;
|
mContentLength = mCreateTimestamp = mModifiedTimestamp = 0;
|
||||||
|
mSize = 0;
|
||||||
|
mQuotaUsedBytes = 0;
|
||||||
|
mQuotaAvailableBytes = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,10 @@ import java.util.Locale;
|
|||||||
|
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
|
|
||||||
|
import org.apache.jackrabbit.webdav.property.DavPropertyName;
|
||||||
|
import org.apache.jackrabbit.webdav.property.DavPropertyNameSet;
|
||||||
|
import org.apache.jackrabbit.webdav.xml.Namespace;
|
||||||
|
|
||||||
public class WebdavUtils {
|
public class WebdavUtils {
|
||||||
public static final SimpleDateFormat DISPLAY_DATE_FORMAT = new SimpleDateFormat(
|
public static final SimpleDateFormat DISPLAY_DATE_FORMAT = new SimpleDateFormat(
|
||||||
"dd.MM.yyyy hh:mm");
|
"dd.MM.yyyy hh:mm");
|
||||||
@ -79,4 +83,52 @@ public class WebdavUtils {
|
|||||||
return encodedPath;
|
return encodedPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds a DavPropertyNameSet with all prop
|
||||||
|
* For using instead of DavConstants.PROPFIND_ALL_PROP
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static DavPropertyNameSet getAllPropSet(){
|
||||||
|
DavPropertyNameSet propSet = new DavPropertyNameSet();
|
||||||
|
propSet.add(DavPropertyName.DISPLAYNAME);
|
||||||
|
propSet.add(DavPropertyName.GETCONTENTTYPE);
|
||||||
|
propSet.add(DavPropertyName.RESOURCETYPE);
|
||||||
|
propSet.add(DavPropertyName.GETCONTENTLENGTH);
|
||||||
|
propSet.add(DavPropertyName.GETLASTMODIFIED);
|
||||||
|
propSet.add(DavPropertyName.CREATIONDATE);
|
||||||
|
propSet.add(DavPropertyName.GETETAG);
|
||||||
|
propSet.add(DavPropertyName.create(WebdavEntry.PROPERTY_QUOTA_USED_BYTES));
|
||||||
|
propSet.add(DavPropertyName.create(WebdavEntry.PROPERTY_QUOTA_AVAILABLE_BYTES));
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_PERMISSIONS,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_REMOTE_ID,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_SIZE,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
|
||||||
|
return propSet;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Builds a DavPropertyNameSet with properties for files
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static DavPropertyNameSet getFilePropSet(){
|
||||||
|
DavPropertyNameSet propSet = new DavPropertyNameSet();
|
||||||
|
propSet.add(DavPropertyName.DISPLAYNAME);
|
||||||
|
propSet.add(DavPropertyName.GETCONTENTTYPE);
|
||||||
|
propSet.add(DavPropertyName.RESOURCETYPE);
|
||||||
|
propSet.add(DavPropertyName.GETCONTENTLENGTH);
|
||||||
|
propSet.add(DavPropertyName.GETLASTMODIFIED);
|
||||||
|
propSet.add(DavPropertyName.CREATIONDATE);
|
||||||
|
propSet.add(DavPropertyName.GETETAG);
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_PERMISSIONS,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_REMOTE_ID,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
propSet.add(WebdavEntry.EXTENDED_PROPERTY_NAME_SIZE,
|
||||||
|
Namespace.getNamespace(WebdavEntry.NAMESPACE_OC));
|
||||||
|
|
||||||
|
return propSet;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,8 +75,9 @@ public class ReadRemoteFileOperation extends RemoteOperation {
|
|||||||
|
|
||||||
/// take the duty of check the server for the current state of the file there
|
/// take the duty of check the server for the current state of the file there
|
||||||
try {
|
try {
|
||||||
|
// remote request
|
||||||
propfind = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
|
propfind = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
|
||||||
DavConstants.PROPFIND_ALL_PROP,
|
WebdavUtils.getFilePropSet(), // PropFind Properties
|
||||||
DavConstants.DEPTH_0);
|
DavConstants.DEPTH_0);
|
||||||
int status;
|
int status;
|
||||||
status = client.executeMethod(propfind, SYNC_READ_TIMEOUT, SYNC_CONNECTION_TIMEOUT);
|
status = client.executeMethod(propfind, SYNC_READ_TIMEOUT, SYNC_CONNECTION_TIMEOUT);
|
||||||
@ -88,7 +89,8 @@ public class ReadRemoteFileOperation extends RemoteOperation {
|
|||||||
if (isSuccess) {
|
if (isSuccess) {
|
||||||
// Parse response
|
// Parse response
|
||||||
MultiStatus resp = propfind.getResponseBodyAsMultiStatus();
|
MultiStatus resp = propfind.getResponseBodyAsMultiStatus();
|
||||||
WebdavEntry we = new WebdavEntry(resp.getResponses()[0], client.getWebdavUri().getPath());
|
WebdavEntry we = new WebdavEntry(resp.getResponses()[0],
|
||||||
|
client.getWebdavUri().getPath());
|
||||||
RemoteFile remoteFile = new RemoteFile(we);
|
RemoteFile remoteFile = new RemoteFile(we);
|
||||||
ArrayList<Object> files = new ArrayList<Object>();
|
ArrayList<Object> files = new ArrayList<Object>();
|
||||||
files.add(remoteFile);
|
files.add(remoteFile);
|
||||||
@ -105,7 +107,8 @@ public class ReadRemoteFileOperation extends RemoteOperation {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
result = new RemoteOperationResult(e);
|
result = new RemoteOperationResult(e);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Log_OC.e(TAG, "Synchronizing file " + mRemotePath + ": " + result.getLogMessage(), result.getException());
|
Log_OC.e(TAG, "Synchronizing file " + mRemotePath + ": " + result.getLogMessage(),
|
||||||
|
result.getException());
|
||||||
} finally {
|
} finally {
|
||||||
if (propfind != null)
|
if (propfind != null)
|
||||||
propfind.releaseConnection();
|
propfind.releaseConnection();
|
||||||
|
@ -74,7 +74,7 @@ public class ReadRemoteFolderOperation extends RemoteOperation {
|
|||||||
try {
|
try {
|
||||||
// remote request
|
// remote request
|
||||||
query = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
|
query = new PropFindMethod(client.getWebdavUri() + WebdavUtils.encodePath(mRemotePath),
|
||||||
DavConstants.PROPFIND_ALL_PROP,
|
WebdavUtils.getAllPropSet(), // PropFind Properties
|
||||||
DavConstants.DEPTH_1);
|
DavConstants.DEPTH_1);
|
||||||
int status = client.executeMethod(query);
|
int status = client.executeMethod(query);
|
||||||
|
|
||||||
@ -111,7 +111,8 @@ public class ReadRemoteFolderOperation extends RemoteOperation {
|
|||||||
Log_OC.i(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
|
Log_OC.i(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
|
||||||
} else {
|
} else {
|
||||||
if (result.isException()) {
|
if (result.isException()) {
|
||||||
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage(), result.getException());
|
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage(),
|
||||||
|
result.getException());
|
||||||
} else {
|
} else {
|
||||||
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
|
Log_OC.e(TAG, "Synchronized " + mRemotePath + ": " + result.getLogMessage());
|
||||||
}
|
}
|
||||||
@ -139,7 +140,8 @@ public class ReadRemoteFolderOperation extends RemoteOperation {
|
|||||||
mFolderAndFiles = new ArrayList<Object>();
|
mFolderAndFiles = new ArrayList<Object>();
|
||||||
|
|
||||||
// parse data from remote folder
|
// parse data from remote folder
|
||||||
WebdavEntry we = new WebdavEntry(remoteData.getResponses()[0], client.getWebdavUri().getPath());
|
WebdavEntry we = new WebdavEntry(remoteData.getResponses()[0],
|
||||||
|
client.getWebdavUri().getPath());
|
||||||
mFolderAndFiles.add(fillOCFile(we));
|
mFolderAndFiles.add(fillOCFile(we));
|
||||||
|
|
||||||
// loop to update every child
|
// loop to update every child
|
||||||
@ -168,6 +170,9 @@ public class ReadRemoteFolderOperation extends RemoteOperation {
|
|||||||
file.setEtag(we.etag());
|
file.setEtag(we.etag());
|
||||||
file.setPermissions(we.permissions());
|
file.setPermissions(we.permissions());
|
||||||
file.setRemoteId(we.remoteId());
|
file.setRemoteId(we.remoteId());
|
||||||
|
file.setSize(we.size());
|
||||||
|
file.setQuotaUsedBytes(we.quotaUsedBytes());
|
||||||
|
file.setQuotaAvailableBytes(we.quotaAvailableBytes());
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ import com.owncloud.android.lib.common.network.WebdavEntry;
|
|||||||
public class RemoteFile implements Parcelable, Serializable {
|
public class RemoteFile implements Parcelable, Serializable {
|
||||||
|
|
||||||
/** Generated - should be refreshed every time the class changes!! */
|
/** Generated - should be refreshed every time the class changes!! */
|
||||||
private static final long serialVersionUID = 532139091191390616L;
|
private static final long serialVersionUID = 3130865437811248451L;
|
||||||
|
|
||||||
private String mRemotePath;
|
private String mRemotePath;
|
||||||
private String mMimeType;
|
private String mMimeType;
|
||||||
@ -50,6 +50,9 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
private String mEtag;
|
private String mEtag;
|
||||||
private String mPermissions;
|
private String mPermissions;
|
||||||
private String mRemoteId;
|
private String mRemoteId;
|
||||||
|
private long mSize;
|
||||||
|
private long mQuotaUsedBytes;
|
||||||
|
private long mQuotaAvailableBytes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Getters and Setters
|
* Getters and Setters
|
||||||
@ -119,6 +122,22 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
this.mRemoteId = remoteId;
|
this.mRemoteId = remoteId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getSize() {
|
||||||
|
return mSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize (long size){
|
||||||
|
mSize = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuotaUsedBytes (long quotaUsedBytes) {
|
||||||
|
mQuotaUsedBytes = quotaUsedBytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQuotaAvailableBytes (long quotaAvailableBytes) {
|
||||||
|
mQuotaAvailableBytes = quotaAvailableBytes;
|
||||||
|
}
|
||||||
|
|
||||||
public RemoteFile() {
|
public RemoteFile() {
|
||||||
resetData();
|
resetData();
|
||||||
}
|
}
|
||||||
@ -147,6 +166,9 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
this.setEtag(we.etag());
|
this.setEtag(we.etag());
|
||||||
this.setPermissions(we.permissions());
|
this.setPermissions(we.permissions());
|
||||||
this.setRemoteId(we.remoteId());
|
this.setRemoteId(we.remoteId());
|
||||||
|
this.setSize(we.size());
|
||||||
|
this.setQuotaUsedBytes(we.quotaUsedBytes());
|
||||||
|
this.setQuotaAvailableBytes(we.quotaAvailableBytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -161,6 +183,9 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
mEtag = null;
|
mEtag = null;
|
||||||
mPermissions = null;
|
mPermissions = null;
|
||||||
mRemoteId = null;
|
mRemoteId = null;
|
||||||
|
mSize = 0;
|
||||||
|
mQuotaUsedBytes = 0;
|
||||||
|
mQuotaAvailableBytes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -197,6 +222,9 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
mEtag = source.readString();
|
mEtag = source.readString();
|
||||||
mPermissions= source.readString();
|
mPermissions= source.readString();
|
||||||
mRemoteId = source.readString();
|
mRemoteId = source.readString();
|
||||||
|
mSize = source.readLong();
|
||||||
|
mQuotaUsedBytes = source.readLong();
|
||||||
|
mQuotaAvailableBytes = source.readLong();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -214,7 +242,9 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
dest.writeString(mEtag);
|
dest.writeString(mEtag);
|
||||||
dest.writeString(mPermissions);
|
dest.writeString(mPermissions);
|
||||||
dest.writeString(mRemoteId);
|
dest.writeString(mRemoteId);
|
||||||
|
dest.writeLong(mSize);
|
||||||
|
dest.writeLong(mQuotaUsedBytes);
|
||||||
|
dest.writeLong(mQuotaAvailableBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user