// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/ProductUI.java
// public class ProductUI implements Parcelable {
// 
//     private String sku;
//     private List<TransactionUI> transactions;
// 
//     public static final Creator<ProductUI> CREATOR = new Creator<ProductUI>() {
//         @Override
//         public ProductUI createFromParcel(Parcel in) {
//             return new ProductUI(in);
//         }
// 
//         @Override
//         public ProductUI[] newArray(int size) {
//             return new ProductUI[size];
//         }
//     };
// 
//     private ProductUI(Parcel in) {
//         sku = in.readString();
//         if (transactions == null) {
//             transactions = new ArrayList<>();
//         }
//         in.readList(transactions, Transaction.class.getClassLoader());
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(sku);
//         dest.writeList(transactions);
//     }
// 
//     public ProductUI(String key, List<Transaction> values, String toCurrency) {
//         sku = key;
//         transactions = new ArrayList<>(values.size());
//         for (Transaction transaction : values) {
//             transactions.add(new TransactionUI(transaction.getCurrency(), toCurrency,
//                     transaction.getAmountPerTransaction(), "0"));
//         }
// 
//     }
// 
//     public List<TransactionUI> getTransactions() {
//         return transactions;
//     }
// 
//     public String getSku() {
//         return sku;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/ui/viewholders/ViewHolder.java
// public class ViewHolder extends RecyclerView.ViewHolder {
//     @InjectView(R.id.txt_title)
//     public TextView mTitle;
// 
//     @InjectView(R.id.txt_subtitle)
//     public TextView mSubtitle;
// 
//     public ViewHolder(View itemView) {
//         super(itemView);
//         ButterKnife.inject(this, itemView);
//     }
// }


import android.os.Handler;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.domain.models.ProductUI;
import com.raulh82vlc.TransactionsViewer.ui.viewholders.ViewHolder;
import java.util.ArrayList;
import java.util.List;
/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.ui.adapters;




/**
 * Adapter for Products listing
 */
public class ProductsListAdapter extends RecyclerView.Adapter<ViewHolder> {

    private OnItemClickListener mOnItemClickListener;

// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/domain/models/ProductUI.java
// public class ProductUI implements Parcelable {
// 
//     private String sku;
//     private List<TransactionUI> transactions;
// 
//     public static final Creator<ProductUI> CREATOR = new Creator<ProductUI>() {
//         @Override
//         public ProductUI createFromParcel(Parcel in) {
//             return new ProductUI(in);
//         }
// 
//         @Override
//         public ProductUI[] newArray(int size) {
//             return new ProductUI[size];
//         }
//     };
// 
//     private ProductUI(Parcel in) {
//         sku = in.readString();
//         if (transactions == null) {
//             transactions = new ArrayList<>();
//         }
//         in.readList(transactions, Transaction.class.getClassLoader());
//     }
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(sku);
//         dest.writeList(transactions);
//     }
// 
//     public ProductUI(String key, List<Transaction> values, String toCurrency) {
//         sku = key;
//         transactions = new ArrayList<>(values.size());
//         for (Transaction transaction : values) {
//             transactions.add(new TransactionUI(transaction.getCurrency(), toCurrency,
//                     transaction.getAmountPerTransaction(), "0"));
//         }
// 
//     }
// 
//     public List<TransactionUI> getTransactions() {
//         return transactions;
//     }
// 
//     public String getSku() {
//         return sku;
//     }
// }
// 
// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/ui/viewholders/ViewHolder.java
// public class ViewHolder extends RecyclerView.ViewHolder {
//     @InjectView(R.id.txt_title)
//     public TextView mTitle;
// 
//     @InjectView(R.id.txt_subtitle)
//     public TextView mSubtitle;
// 
//     public ViewHolder(View itemView) {
//         super(itemView);
//         ButterKnife.inject(this, itemView);
//     }
// }


// Path: android/src/main/java/com/raulh82vlc/TransactionsViewer/ui/adapters/ProductsListAdapter.java
import android.os.Handler;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.raulh82vlc.TransactionsViewer.R;
import com.raulh82vlc.TransactionsViewer.domain.models.ProductUI;
import com.raulh82vlc.TransactionsViewer.ui.viewholders.ViewHolder;
import java.util.ArrayList;
import java.util.List;

/*
 * Copyright (C) 2017 Raul Hernandez Lopez @raulh82vlc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.raulh82vlc.TransactionsViewer.ui.adapters;




/**
 * Adapter for Products listing
 */
public class ProductsListAdapter extends RecyclerView.Adapter<ViewHolder> {

    private OnItemClickListener mOnItemClickListener;

    private List<ProductUI> mProductUIs = new ArrayList<>();