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.apis.taskmanagement.InboxAppTasks; //from w w w.ja va 2 s.c o m import android.util.Log; import com.inboxapp.androidsdk.apis.InboxAppClient; import com.inboxapp.androidsdk.apis.taskmanagement.InboxAppTaskCallback; import com.inboxapp.androidsdk.apis.taskmanagement.InboxAppTasks.base.InboxAppTask; import com.inboxapp.androidsdk.apis.taskmanagement.InboxTaskID; import com.inboxapp.androidsdk.json_objects.single_objects.Draft; import com.inboxapp.androidsdk.json_objects.single_objects.Namespace; import com.inboxapp.androidsdk.json_objects.single_objects.body_objects.DraftID; import java.io.Serializable; import java.util.ArrayList; /** * Created by sylvianguessan on 8/14/14. */ public class SendDraftWithBodyTask extends InboxAppTask { public String nameSpace; public Draft draft; public SendDraftWithBodyTask() { super(); mInboxTaskID = InboxTaskID.SEND_DRAFT_WITH_BODY; } @Override public void executeWithClient(InboxAppClient inboxAppClient, InboxAppTaskCallback inboxAppTaskCallback) { if (inboxAppClient != null) { Log.w("\nInboxAppTask (executeWithClient)/SEND_DRAFT_WITH_BODY", "\n Task name:" + this.mInboxTaskID + "\n" + "Namespace:" + nameSpace + "\n" + "Draft:" + draft.memberTypesValue() ); InboxAppClient.DraftInterface draftInterface = inboxAppClient.mRestAdapter.create(InboxAppClient.DraftInterface.class); draftInterface.sendDraft(nameSpace, draft, inboxAppTaskCallback); } else { Log.e("InboxAppTask (executeWithClient))", "InboxAppClient is null"); } } }