// Path: app/src/main/java/com/ragdroid/dahaka/activity/items/list/ItemsAdapter.java
// public class ItemsAdapter extends RecyclerView.Adapter<ItemsAdapter.ItemsViewHolder> {
// 
//     List<String> items = new ArrayList<>();
//     @Inject
//     public ItemsAdapter() {
// 
//     }
// 
//     @Override
//     public ItemsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_held, parent, false);
//         return new ItemsViewHolder(view);
//     }
// 
//     @Override
//     public void onBindViewHolder(ItemsViewHolder holder, int position) {
//         String move = items.get(position);
//         holder.dataBinding.setMove(move);
//     }
// 
//     public void updateList(List<String> items) {
//         this.items.clear();
//         this.items.addAll(items);
//         notifyDataSetChanged();
//     }
// 
//     @Override
//     public int getItemCount() {
//         return items.size();
//     }
// 
//     public class ItemsViewHolder extends RecyclerView.ViewHolder {
// 
//         private final ItemHeldBinding dataBinding;
// 
//         public ItemsViewHolder(View itemView) {
//             super(itemView);
//             dataBinding = DataBindingUtil.bind(itemView);
//         }
//     }
// 
// }


import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import com.ragdroid.dahaka.activity.items.list.ItemsAdapter;
import dagger.Module;
import dagger.Provides;
package com.ragdroid.dahaka.activity.items;




/**
 * Created by garimajain on 17/08/17.
 */
@Module
public class ItemsModule {

    @Provides
    static ItemsContract.Presenter provideHomePresenter(ItemsPresenter presenter) {
        return presenter;
    }

    @Provides
// Path: app/src/main/java/com/ragdroid/dahaka/activity/items/list/ItemsAdapter.java
// public class ItemsAdapter extends RecyclerView.Adapter<ItemsAdapter.ItemsViewHolder> {
// 
//     List<String> items = new ArrayList<>();
//     @Inject
//     public ItemsAdapter() {
// 
//     }
// 
//     @Override
//     public ItemsViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//         View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_held, parent, false);
//         return new ItemsViewHolder(view);
//     }
// 
//     @Override
//     public void onBindViewHolder(ItemsViewHolder holder, int position) {
//         String move = items.get(position);
//         holder.dataBinding.setMove(move);
//     }
// 
//     public void updateList(List<String> items) {
//         this.items.clear();
//         this.items.addAll(items);
//         notifyDataSetChanged();
//     }
// 
//     @Override
//     public int getItemCount() {
//         return items.size();
//     }
// 
//     public class ItemsViewHolder extends RecyclerView.ViewHolder {
// 
//         private final ItemHeldBinding dataBinding;
// 
//         public ItemsViewHolder(View itemView) {
//             super(itemView);
//             dataBinding = DataBindingUtil.bind(itemView);
//         }
//     }
// 
// }


// Path: app/src/main/java/com/ragdroid/dahaka/activity/items/ItemsModule.java
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import com.ragdroid.dahaka.activity.items.list.ItemsAdapter;
import dagger.Module;
import dagger.Provides;

package com.ragdroid.dahaka.activity.items;




/**
 * Created by garimajain on 17/08/17.
 */
@Module
public class ItemsModule {

    @Provides
    static ItemsContract.Presenter provideHomePresenter(ItemsPresenter presenter) {
        return presenter;
    }

    @Provides
    static ItemsAdapter provideItemsAdapter() {