Back to project page inbox-android.
The source code is released under:
MIT License
If you think the Android project inbox-android 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.inboxapp.androidsdk.json_objects.single_objects; //w w w . jav a 2 s. c o m import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.inboxapp.androidsdk.json_objects.single_objects.base.InboxAppSingleObject; import org.apache.commons.lang.builder.ToStringBuilder; import java.io.Serializable; /** * Created by sylvianguessan on 8/7/14. */ @JsonIgnoreProperties(ignoreUnknown = true) public class File implements Serializable, InboxAppSingleObject { @JsonProperty("id") String id; @JsonProperty("object") String object; @JsonProperty("namespace") String namespace; @JsonProperty("filename") String filename; @JsonProperty("size") long size; @JsonProperty("content_type") protected String content_type; @JsonProperty("message") String message; @JsonProperty("is_embedded") boolean is_embedded; public String getId(){return id;} public void setId(String s){id=s;} public String getObject(){return object;} public void setObject(String s){object=s;} public String getNamespace(){return namespace;} public void setNamespace(String s){namespace=s;} public String getFileName(){return filename;} public void setFileName(String s){filename=s;} public long getSize(){return size;} public void setSize(long l){size=l;} public String getContent_type(){return content_type;} public void setContent_type(String s){ content_type =s;} public String getMessage(){return message;} public void setMessage(String s){ message =s;} public boolean getIsEmbedded(){return is_embedded;} public void setIsEmbedded(boolean b){ is_embedded =b;} @Override public String toString() { return ToStringBuilder.reflectionToString(this); } public String memberTypesValue() { return "id: "+id+"\n" +"object: "+object+"\n" +"namespace: "+namespace+"\n" +"filename: "+filename+"\n" +"size: "+size+"\n" +"content-type: "+ content_type +"\n" +"message: "+ message +"\n" +"is_embedded: "+(is_embedded ?"true":"false")+"\n"; } }