mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Update class RemoteFile to include property oc:permissions
This commit is contained in:
parent
8f8c29c776
commit
b27a0ba5a1
@ -48,7 +48,8 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
private long mCreationTimestamp;
|
private long mCreationTimestamp;
|
||||||
private long mModifiedTimestamp;
|
private long mModifiedTimestamp;
|
||||||
private String mEtag;
|
private String mEtag;
|
||||||
|
private String mPermissions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Getters and Setters
|
* Getters and Setters
|
||||||
*/
|
*/
|
||||||
@ -101,6 +102,14 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
this.mEtag = etag;
|
this.mEtag = etag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getPermissions() {
|
||||||
|
return mPermissions;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPermissions(String permissions) {
|
||||||
|
this.mPermissions = permissions;
|
||||||
|
}
|
||||||
|
|
||||||
public RemoteFile() {
|
public RemoteFile() {
|
||||||
resetData();
|
resetData();
|
||||||
}
|
}
|
||||||
@ -127,6 +136,7 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
this.setMimeType(we.contentType());
|
this.setMimeType(we.contentType());
|
||||||
this.setModifiedTimestamp(we.modifiedTimestamp());
|
this.setModifiedTimestamp(we.modifiedTimestamp());
|
||||||
this.setEtag(we.etag());
|
this.setEtag(we.etag());
|
||||||
|
this.setPermissions(we.permissions());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -139,6 +149,7 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
mCreationTimestamp = 0;
|
mCreationTimestamp = 0;
|
||||||
mModifiedTimestamp = 0;
|
mModifiedTimestamp = 0;
|
||||||
mEtag = null;
|
mEtag = null;
|
||||||
|
mPermissions = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -173,6 +184,7 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
mCreationTimestamp = source.readLong();
|
mCreationTimestamp = source.readLong();
|
||||||
mModifiedTimestamp = source.readLong();
|
mModifiedTimestamp = source.readLong();
|
||||||
mEtag = source.readString();
|
mEtag = source.readString();
|
||||||
|
mPermissions= source.readString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -187,7 +199,8 @@ public class RemoteFile implements Parcelable, Serializable {
|
|||||||
dest.writeLong(mLength);
|
dest.writeLong(mLength);
|
||||||
dest.writeLong(mCreationTimestamp);
|
dest.writeLong(mCreationTimestamp);
|
||||||
dest.writeLong(mModifiedTimestamp);
|
dest.writeLong(mModifiedTimestamp);
|
||||||
dest.writeString(mEtag);
|
dest.writeString(mEtag);
|
||||||
|
dest.writeString(mPermissions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user