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; /* www . j a v a 2 s . co 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.TagName; import java.io.Serializable; import java.util.ArrayList; /** * Created by sylvianguessan on 8/14/14. */ public class CreateDraftWithBodyTask extends InboxAppTask { public String nameSpace; public Draft draft; public CreateDraftWithBodyTask() { super(); mInboxTaskID = InboxTaskID.CREATE_DRAFT_WITH_BODY; } @Override public void executeWithClient(InboxAppClient inboxAppClient, InboxAppTaskCallback inboxAppTaskCallback) { if (inboxAppClient != null) { Log.w("\nInboxAppTask (executeWithClient)/CREATE_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.createDraft(nameSpace, draft, inboxAppTaskCallback); } else { Log.e("InboxAppTask (executeWithClient))", "InboxAppClient is null"); } } }