// Path: app/src/main/java/com/konifar/annict/model/Program.java
// @Parcel
// @Table
// public class Program {
// 
//     public static final String TAG = Program.class.getSimpleName();
// 
//     @PrimaryKey(auto = false)
//     @Column(indexed = true)
//     @SerializedName("id")
//     public long id;
// 
//     @Column
//     @SerializedName("started_at")
//     public Date startedAt;
// 
//     @Column
//     @SerializedName("is_rebroadcast")
//     public boolean isRebroadcast;
// 
//     @Column(indexed = true)
//     @SerializedName("channel")
//     public Channel channel;
// 
//     @Column(indexed = true)
//     @SerializedName("work")
//     public Work work;
// 
//     @Column(indexed = true)
//     @SerializedName("episode")
//     public Episode episode;
// 
//     public Program() {
//         //
//     }
// }
// 
// Path: app/src/main/java/com/konifar/annict/viewmodel/EpisodeDetailViewModel.java
// public class EpisodeDetailViewModel extends BaseObservable implements ViewModel {
// 
//     private static final String TAG = EpisodeDetailViewModel.class.getSimpleName();
// 
//     private final Context context;
// 
//     private final AnnictClient client;
// 
//     private final EventBus eventBus;
// 
//     private final PageNavigator pageNavigator;
// 
//     private final CompositeSubscription compositeSubscription = new CompositeSubscription();
// 
//     @Bindable
//     public Program program;
// 
//     @Inject
//     public EpisodeDetailViewModel(Context context, AnnictClient client, EventBus eventBus,
//         PageNavigator pageNavigator) {
//         this.context = context;
//         this.client = client;
//         this.eventBus = eventBus;
//         this.pageNavigator = pageNavigator;
//     }
// 
//     public Program getProgram() {
//         return program;
//     }
// 
//     public void setProgram(Program program) {
//         this.program = program;
//         notifyPropertyChanged(BR.program);
//     }
// 
//     @Override
//     public void destroy() {
//         compositeSubscription.unsubscribe();
//     }
// }


import com.konifar.annict.R;
import com.konifar.annict.databinding.ActivityEpisodeDetailBinding;
import com.konifar.annict.model.Program;
import com.konifar.annict.viewmodel.EpisodeDetailViewModel;
import org.parceler.Parcels;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import javax.inject.Inject;
package com.konifar.annict.view.activity;





public class EpisodeDetailActivity extends BaseActivity {

    @Inject
    EpisodeDetailViewModel viewModel;

    private ActivityEpisodeDetailBinding binding;

// Path: app/src/main/java/com/konifar/annict/model/Program.java
// @Parcel
// @Table
// public class Program {
// 
//     public static final String TAG = Program.class.getSimpleName();
// 
//     @PrimaryKey(auto = false)
//     @Column(indexed = true)
//     @SerializedName("id")
//     public long id;
// 
//     @Column
//     @SerializedName("started_at")
//     public Date startedAt;
// 
//     @Column
//     @SerializedName("is_rebroadcast")
//     public boolean isRebroadcast;
// 
//     @Column(indexed = true)
//     @SerializedName("channel")
//     public Channel channel;
// 
//     @Column(indexed = true)
//     @SerializedName("work")
//     public Work work;
// 
//     @Column(indexed = true)
//     @SerializedName("episode")
//     public Episode episode;
// 
//     public Program() {
//         //
//     }
// }
// 
// Path: app/src/main/java/com/konifar/annict/viewmodel/EpisodeDetailViewModel.java
// public class EpisodeDetailViewModel extends BaseObservable implements ViewModel {
// 
//     private static final String TAG = EpisodeDetailViewModel.class.getSimpleName();
// 
//     private final Context context;
// 
//     private final AnnictClient client;
// 
//     private final EventBus eventBus;
// 
//     private final PageNavigator pageNavigator;
// 
//     private final CompositeSubscription compositeSubscription = new CompositeSubscription();
// 
//     @Bindable
//     public Program program;
// 
//     @Inject
//     public EpisodeDetailViewModel(Context context, AnnictClient client, EventBus eventBus,
//         PageNavigator pageNavigator) {
//         this.context = context;
//         this.client = client;
//         this.eventBus = eventBus;
//         this.pageNavigator = pageNavigator;
//     }
// 
//     public Program getProgram() {
//         return program;
//     }
// 
//     public void setProgram(Program program) {
//         this.program = program;
//         notifyPropertyChanged(BR.program);
//     }
// 
//     @Override
//     public void destroy() {
//         compositeSubscription.unsubscribe();
//     }
// }


// Path: app/src/main/java/com/konifar/annict/view/activity/EpisodeDetailActivity.java
import com.konifar.annict.R;
import com.konifar.annict.databinding.ActivityEpisodeDetailBinding;
import com.konifar.annict.model.Program;
import com.konifar.annict.viewmodel.EpisodeDetailViewModel;
import org.parceler.Parcels;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import javax.inject.Inject;

package com.konifar.annict.view.activity;





public class EpisodeDetailActivity extends BaseActivity {

    @Inject
    EpisodeDetailViewModel viewModel;

    private ActivityEpisodeDetailBinding binding;

    public static Intent createIntent(Context context, @Nullable Program program) {