// Path: Idovatar/src/main/java/com/uphyca/idobata/android/InjectionUtils.java
// public abstract class InjectionUtils {
// 
//     private InjectionUtils() {
//     }
// 
//     public static ObjectGraph getObjectGraph(Context context) {
//         return IdobataApplication.class.cast(context.getApplicationContext())
//                                        .getObjectGraph();
//     }
// }


import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.uphyca.idobata.Idobata;
import com.uphyca.idobata.IdobataError;
import com.uphyca.idobata.android.InjectionUtils;
import javax.inject.Inject;

package com.uphyca.idobata.android.service;




public class PostTextService extends IntentService {

    private static final String EXTRA_ROOM_URI = "room_uri";
    private static final String EXTRA_SOURCE = "source";

    public static void postText(Context context, Uri roomUri, String source) {
        Intent intent = new Intent(context, PostTextService.class).putExtra(EXTRA_SOURCE, source)
                                                                  .putExtra(EXTRA_ROOM_URI, roomUri);
        context.startService(intent);
    }

    @Inject
    Idobata mIdobata;

    public PostTextService() {
        super("PostTextService");
    }

    @Override
    public void onCreate() {
        super.onCreate();
// Path: Idovatar/src/main/java/com/uphyca/idobata/android/InjectionUtils.java
// public abstract class InjectionUtils {
// 
//     private InjectionUtils() {
//     }
// 
//     public static ObjectGraph getObjectGraph(Context context) {
//         return IdobataApplication.class.cast(context.getApplicationContext())
//                                        .getObjectGraph();
//     }
// }


// Path: Idovatar/src/main/java/com/uphyca/idobata/android/service/PostTextService.java
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.uphyca.idobata.Idobata;
import com.uphyca.idobata.IdobataError;
import com.uphyca.idobata.android.InjectionUtils;
import javax.inject.Inject;


package com.uphyca.idobata.android.service;




public class PostTextService extends IntentService {

    private static final String EXTRA_ROOM_URI = "room_uri";
    private static final String EXTRA_SOURCE = "source";

    public static void postText(Context context, Uri roomUri, String source) {
        Intent intent = new Intent(context, PostTextService.class).putExtra(EXTRA_SOURCE, source)
                                                                  .putExtra(EXTRA_ROOM_URI, roomUri);
        context.startService(intent);
    }

    @Inject
    Idobata mIdobata;

    public PostTextService() {
        super("PostTextService");
    }

    @Override
    public void onCreate() {
        super.onCreate();
        InjectionUtils.getObjectGraph(this)