// Path: SimpleWeatherForecast/src/main/java/fr/tvbarthel/apps/billing/model/CoffeeEntry.java
// public class CoffeeEntry {
// 
//     /**
//      * details from play store
//      */
//     private SkuDetails mSkuDetails;
// 
//     /**
//      * percentage of caffeine
//      */
//     private int mCoffeeRate;
// 
//     /**
//      * percentage of energy
//      */
//     private int mEnergyRate;
// 
//     /**
//      * percentage of "candyness"
//      */
//     private int mCandyRate;
// 
//     /**
//      * create a coffee entry
//      *
//      * @param skuDetails details from play store
//      * @param coffeeRate caffeine rate
//      * @param energyRate energy rate
//      * @param candyRate  candyness rate
//      */
//     public CoffeeEntry(SkuDetails skuDetails, int coffeeRate, int energyRate, int candyRate) {
//         mSkuDetails = skuDetails;
//         mCoffeeRate = coffeeRate;
//         mEnergyRate = energyRate;
//         mCandyRate = candyRate;
//     }
// 
//     /**
//      * GETTER
//      */
//     public SkuDetails getSkuDetails() {
//         return mSkuDetails;
//     }
// 
//     public int getCaffeineRate() {
//         return mCoffeeRate;
//     }
// 
//     public int getEnergyRate() {
//         return mEnergyRate;
//     }
// 
//     public int getCandyRate() {
//         return mCandyRate;
//     }
// }


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.android.vending.billing.util.SkuDetails;
import java.util.List;
import fr.tvbarthel.apps.billing.model.CoffeeEntry;
import fr.tvbarthel.apps.simpleweatherforcast.R;
package fr.tvbarthel.apps.billing.adapter;






public class SupportAdapter extends ArrayAdapter<CoffeeEntry> {

    /**
     * create an adapter for support purchase list
     *
     * @param context
     * @param objects
     */
    public SupportAdapter(Context context, List<CoffeeEntry> objects) {
        super(context, R.layout.support_entry, objects);
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View rowView = convertView;
// Path: SimpleWeatherForecast/src/main/java/fr/tvbarthel/apps/billing/model/CoffeeEntry.java
// public class CoffeeEntry {
// 
//     /**
//      * details from play store
//      */
//     private SkuDetails mSkuDetails;
// 
//     /**
//      * percentage of caffeine
//      */
//     private int mCoffeeRate;
// 
//     /**
//      * percentage of energy
//      */
//     private int mEnergyRate;
// 
//     /**
//      * percentage of "candyness"
//      */
//     private int mCandyRate;
// 
//     /**
//      * create a coffee entry
//      *
//      * @param skuDetails details from play store
//      * @param coffeeRate caffeine rate
//      * @param energyRate energy rate
//      * @param candyRate  candyness rate
//      */
//     public CoffeeEntry(SkuDetails skuDetails, int coffeeRate, int energyRate, int candyRate) {
//         mSkuDetails = skuDetails;
//         mCoffeeRate = coffeeRate;
//         mEnergyRate = energyRate;
//         mCandyRate = candyRate;
//     }
// 
//     /**
//      * GETTER
//      */
//     public SkuDetails getSkuDetails() {
//         return mSkuDetails;
//     }
// 
//     public int getCaffeineRate() {
//         return mCoffeeRate;
//     }
// 
//     public int getEnergyRate() {
//         return mEnergyRate;
//     }
// 
//     public int getCandyRate() {
//         return mCandyRate;
//     }
// }


// Path: SimpleWeatherForecast/src/main/java/fr/tvbarthel/apps/billing/adapter/SupportAdapter.java
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.android.vending.billing.util.SkuDetails;
import java.util.List;
import fr.tvbarthel.apps.billing.model.CoffeeEntry;
import fr.tvbarthel.apps.simpleweatherforcast.R;

package fr.tvbarthel.apps.billing.adapter;






public class SupportAdapter extends ArrayAdapter<CoffeeEntry> {

    /**
     * create an adapter for support purchase list
     *
     * @param context
     * @param objects
     */
    public SupportAdapter(Context context, List<CoffeeEntry> objects) {
        super(context, R.layout.support_entry, objects);
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View rowView = convertView;
        final CoffeeEntry currentEntry = getItem(position);