Back to project page box-android-sdk-v2-master.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRI...
If you think the Android project box-android-sdk-v2-master listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.box.boxandroidlibv2.dao; /*from w ww . j a v a 2 s . c o m*/ import java.util.Map; import android.os.Parcel; import android.os.Parcelable; import com.box.boxjavalibv2.dao.BoxFile; import com.fasterxml.jackson.annotation.JsonProperty; /** * Data class for file. */ public class BoxAndroidFile extends BoxFile implements Parcelable { public BoxAndroidFile() { super(); } private BoxAndroidFile(final Parcel in) { super(new BoxParcel(in)); } /** * Copy constructor, this does deep copy for all the fields. * * @param obj */ public BoxAndroidFile(BoxAndroidFile obj) { super(obj); } /** * Instantiate the object from a map. Each entry in the map reflects to a field. * * @param map */ public BoxAndroidFile(Map<String, Object> map) { super(map); } @Override @JsonProperty(FIELD_PARENT) public BoxAndroidFolder getParent() { return (BoxAndroidFolder) getValue(FIELD_PARENT); } @JsonProperty(FIELD_PARENT) private void setParent(BoxAndroidFolder folder) { put(FIELD_PARENT, folder); } @Override @JsonProperty(FIELD_PATH_COLLECTION) public BoxAndroidCollection getPathCollection() { return (BoxAndroidCollection) getValue(FIELD_PATH_COLLECTION); } @JsonProperty(FIELD_PATH_COLLECTION) private void setPathCollection(BoxAndroidCollection pathCollection) { put(FIELD_PATH_COLLECTION, pathCollection); } @Override @JsonProperty(FIELD_SHARED_LINK) public BoxAndroidSharedLink getSharedLink() { return (BoxAndroidSharedLink) getValue(FIELD_SHARED_LINK); } @JsonProperty(FIELD_SHARED_LINK) private void setSharedLink(BoxAndroidSharedLink sharedLink) { put(FIELD_SHARED_LINK, sharedLink); } @Override public int describeContents() { return 0; } @Override public void writeToParcel(final Parcel dest, final int flags) { super.writeToParcel(new BoxParcel(dest), flags); } public static final Parcelable.Creator<BoxAndroidFile> CREATOR = new Parcelable.Creator<BoxAndroidFile>() { @Override public BoxAndroidFile createFromParcel(final Parcel source) { return new BoxAndroidFile(source); } @Override public BoxAndroidFile[] newArray(final int size) { return new BoxAndroidFile[size]; } }; }