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.
Java Source Code
package com.box.boxandroidlibv2.dao;
//www.java2s.comimport java.util.Map;
import android.os.Parcel;
import android.os.Parcelable;
import com.box.boxjavalibv2.dao.BoxSharedLink;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Data class for shared link.
*/publicclass BoxAndroidSharedLink extends BoxSharedLink implements Parcelable {
public BoxAndroidSharedLink() {
super();
}
private BoxAndroidSharedLink(Parcel in) {
super(new BoxParcel(in));
}
/**
* Copy constructor, this does deep copy for all the fields.
*
* @param obj
*/public BoxAndroidSharedLink(BoxAndroidSharedLink obj) {
super(obj);
}
/**
* Instantiate the object from a map. Each entry in the map reflects to a field.
*
* @param map
*/public BoxAndroidSharedLink(Map<String, Object> map) {
super(map);
}
@Override
@JsonProperty(FIELD_PERMISSIONS)
public BoxAndroidSharedLinkPermissions getPermissions() {
return (BoxAndroidSharedLinkPermissions) getValue(FIELD_PERMISSIONS);
}
@JsonProperty(FIELD_PERMISSIONS)
privatevoid setPermissions(final BoxAndroidSharedLinkPermissions permissionsEntity) {
put(FIELD_PERMISSIONS, permissionsEntity);
}
@Override
publicint describeContents() {
return 0;
}
@Override
publicvoid writeToParcel(Parcel dest, int flags) {
super.writeToParcel(new BoxParcel(dest), flags);
}
publicstaticfinal Parcelable.Creator<BoxAndroidSharedLink> CREATOR = new Parcelable.Creator<BoxAndroidSharedLink>() {
@Override
public BoxAndroidSharedLink createFromParcel(Parcel source) {
returnnew BoxAndroidSharedLink(source);
}
@Override
public BoxAndroidSharedLink[] newArray(int size) {
returnnew BoxAndroidSharedLink[size];
}
};
}