package com.anotherdev.stackapp.intent;

import android.content.Context;

import com.anotherdev.stackapp.app.DetailActivity;

public class DetailIntent extends StackIntent {

    public DetailIntent(Context context) {
        super(context, DetailActivity.class);
    }
}

@@ -66,16 +66,136 @@
 ontext;%0A
+import android.content.Intent;%0Aimport android.os.Parcelable;%0A%0Aimport com.anotherdev.stackapp.api.stackexchange.Question;
 %0Aimport 
@@ -239,16 +239,46 @@
 ivity;%0A%0A
+import org.parceler.Parcels;%0A%0A
 public c
@@ -318,16 +318,87 @@
 tent %7B%0A%0A
+    private static final String EXTRA_QUESTION = EXTRA + %22question%22;%0A%0A%0A
     publ
@@ -428,16 +428,35 @@
  context
+, Question question
 ) %7B%0A    
@@ -497,16 +497,294 @@
 class);%0A
+        if (question != null) %7B%0A            putExtra(EXTRA_QUESTION, Parcels.wrap(question));%0A        %7D%0A    %7D%0A%0A%0A    public static Question getQuestion(Intent intent) %7B%0A        Parcelable parcel = intent.getParcelableExtra(EXTRA_QUESTION);%0A        return Parcels.unwrap(parcel);%0A
     %7D%0A%7D%0A

add question payload