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; /*from w w w . j a v a2s . c o m*/ import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.inboxapp.androidsdk.apis.InboxAppClient; import com.inboxapp.androidsdk.json_objects.single_objects.base.InboxAppSingleObject; import com.inboxapp.androidsdk.json_objects.single_objects.body_objects.TagName; import org.apache.commons.lang.builder.ToStringBuilder; import java.io.Serializable; import java.util.ArrayList; import retrofit.Callback; import retrofit.client.Response; import retrofit.http.Body; import retrofit.http.Path; /** * Created by sylvianguessan on 8/7/14. */ @JsonIgnoreProperties(ignoreUnknown = true) public class Namespace implements Serializable, InboxAppSingleObject { @JsonProperty("id") String id; @JsonProperty("object") String object; @JsonProperty("namespace") String namespace; @JsonProperty("account") String account; @JsonProperty("email_address") String email_address; @JsonProperty("provider") String provider; 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 getAccount(){return account;} public void setAccount(String s){account=s;} public String getEmailAddress(){return email_address;} public void setEmailAddress(String s){email_address=s;} public String getProvider(){return provider;} public void setProvider(String s){provider=s;} @Override public String toString() { return ToStringBuilder.reflectionToString(this); } public String memberTypesValue() { return "id: "+id+"\n" +"object: "+object+"\n" +"namespace: "+namespace+"\n" +"account: "+account+"\n" +"email_address: "+email_address+"\n" +"provider: "+provider+"\n"; } //Callback methods //GET public void getTagsWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<Tag>> callback) { inboxAppClient.getTagsWithCallback(id, callback); } public void getThreadsWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<Thread>> callback) { inboxAppClient.getThreadsWithCallback(id, callback); } public void getMessagesWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<Message>> callback) { inboxAppClient.getMessagesWithCallback(id, callback); } public void getFilesWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<File>> callback) { inboxAppClient.getFilesWithCallback(id, callback); } public void getContactsWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<Contact>> callback) { inboxAppClient.getContactsWithCallback(id, callback); } public void getDraftsWithCallback(InboxAppClient inboxAppClient, Callback<ArrayList<Draft>> callback) { inboxAppClient.getDraftsWithCallback(id, callback); } //POST/PUT public void createCustomTagWithCallback(InboxAppClient inboxAppClient, TagName tagName){ inboxAppClient.createCustomTag(id ,tagName); } }