// Path: app/src/main/java/com/github/aleksandermielczarek/observablecacheexample/component/AppComponent.java
// @Component(modules = {NapkinAppModule.class, Observable1Module.class, Observable2Module.class})
// @AppScope
// public interface AppComponent {
// 
//     ActivityComponent with(NapkinActivityModule activityModule);
// }


import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.github.aleksandermielczarek.napkin.Napkin;
import com.github.aleksandermielczarek.napkin.module.NapkinActivityModule;
import com.github.aleksandermielczarek.observablecacheexample.R;
import com.github.aleksandermielczarek.observablecacheexample.component.AppComponent;
import com.github.aleksandermielczarek.observablecacheexample.databinding.ActivityObservable2Binding;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.InstanceState;
import javax.inject.Inject;
package com.github.aleksandermielczarek.observablecacheexample.ui;





/**
 * Created by Aleksander Mielczarek on 10.02.2017.
 */
@EActivity
public class Observable2Activity extends AppCompatActivity {

    @InstanceState
    protected Observable2ViewModel.State state;

    @Inject
    protected Observable2ViewModel observable2ViewModel;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
// Path: app/src/main/java/com/github/aleksandermielczarek/observablecacheexample/component/AppComponent.java
// @Component(modules = {NapkinAppModule.class, Observable1Module.class, Observable2Module.class})
// @AppScope
// public interface AppComponent {
// 
//     ActivityComponent with(NapkinActivityModule activityModule);
// }


// Path: app/src/main/java/com/github/aleksandermielczarek/observablecacheexample/ui/Observable2Activity.java
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.github.aleksandermielczarek.napkin.Napkin;
import com.github.aleksandermielczarek.napkin.module.NapkinActivityModule;
import com.github.aleksandermielczarek.observablecacheexample.R;
import com.github.aleksandermielczarek.observablecacheexample.component.AppComponent;
import com.github.aleksandermielczarek.observablecacheexample.databinding.ActivityObservable2Binding;
import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.InstanceState;
import javax.inject.Inject;

package com.github.aleksandermielczarek.observablecacheexample.ui;





/**
 * Created by Aleksander Mielczarek on 10.02.2017.
 */
@EActivity
public class Observable2Activity extends AppCompatActivity {

    @InstanceState
    protected Observable2ViewModel.State state;

    @Inject
    protected Observable2ViewModel observable2ViewModel;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Napkin.<AppComponent>provideAppComponent(this)