// Path: library/src/main/java/com/siu/android/volleyball/BallResponse.java
// public class BallResponse<T> {
// 
//     public static enum ResponseSource {
//         LOCAL, CACHE, NETWORK
//     }
// 
//     protected Response<T> mResponse;
//     protected ResponseSource mResponseSource;
//     protected boolean mIdentical = false;
// 
//     /**
//      * Returns whether this response is considered successful.
//      */
//     public boolean isSuccess() {
//         return mResponse.isSuccess();
//     }
// 
//     public static <T> BallResponse<T> identical(ResponseSource responseSource) {
//         return new BallResponse<T>(Response.<T>success(null, null), responseSource, true);
//     }
// 
//     public static <T> BallResponse<T> success(T result) {
//         return new BallResponse<T>(Response.success(result, null));
//     }
// 
//     public static <T> BallResponse<T> success(T result, Cache.Entry cacheEntry) {
//         return new BallResponse<T>(Response.success(result, cacheEntry));
//     }
// 
//     public static <T> BallResponse<T> error(VolleyError error) {
//         return new BallResponse<T>(Response.<T>error(error), ResponseSource.NETWORK); // error cames always from network
//     }
// 
//     protected BallResponse(Response<T> response) {
//         this(response, null, false);
//     }
// 
//     protected BallResponse(Response<T> response, ResponseSource responseSource) {
//         this(response, responseSource, false);
//     }
// 
//     public BallResponse(Response<T> response, ResponseSource responseSource, boolean identical) {
//         mResponse = response;
//         mResponseSource = responseSource;
//         mIdentical = identical;
//     }
// 
//     public ResponseSource getResponseSource() {
//         return mResponseSource;
//     }
// 
//     public void setResponseSource(ResponseSource responseSource) {
//         this.mResponseSource = responseSource;
//     }
// 
//     public boolean isIntermediate() {
//         return mResponse.intermediate;
//     }
// 
//     public void setIntermediate(boolean intermediate) {
//         mResponse.intermediate = intermediate;
//     }
// 
//     public T getResult() {
//         return mResponse.result;
//     }
// 
//     public Cache.Entry getCacheEntry() {
//         return mResponse.cacheEntry;
//     }
// 
//     public VolleyError getError() {
//         return mResponse.error;
//     }
// 
//     public boolean isIdentical() {
//         return mIdentical;
//     }
// 
//     public void setIdentical(boolean identical) {
//         mIdentical = identical;
//     }
// }
// 
// Path: library/src/main/java/com/siu/android/volleyball/response/ResponseListener.java
// public interface ResponseListener<T> {
// 
//     public void onIntermediateResponse(T response, BallResponse.ResponseSource responseSource);
// 
//     public void onFinalResponse(T response, BallResponse.ResponseSource responseSource);
// 
//     public void onFinalResponseIdenticalToIntermediate(BallResponse.ResponseSource responseSource);
// }
// 
// Path: samples/src/main/java/com/siu/android/volleyball/samples/adapter/LogsAdapter.java
// public class LogsAdapter extends BindableAdapter<Log> {
// 
//     private List<Log> mList;
// 
//     public LogsAdapter(Context context, List<Log> list) {
//         super(context);
//         mList = list;
//     }
// 
//     @Override
//     public Log getItem(int position) {
//         return mList.get(position);
//     }
// 
//     @Override
//     public View newView(LayoutInflater inflater, int position, ViewGroup container) {
//         return inflater.inflate(R.layout.log_row, null);
//     }
// 
//     @Override
//     public void bindView(Log item, int position, View view) {
//         TextView contentTextView = (TextView) view.findViewById(R.id.content);
//         contentTextView.setText(item.getContent());
// 
//         TextView millisTextView = (TextView) view.findViewById(R.id.millis);
//         millisTextView.setText(String.valueOf(item.getMillis()));
//     }
// 
//     @Override
//     public int getCount() {
//         return mList.size();
//     }
// 
//     @Override
//     public long getItemId(int i) {
//         return i;
//     }
// }


import com.siu.android.volleyball.BallResponse;
import com.siu.android.volleyball.response.ResponseListener;
import com.siu.android.volleyball.samples.adapter.LogsAdapter;
import java.util.List;
package com.siu.android.volleyball.samples.volley;



/**
 * Created by lukas on 9/3/13.
 */
public class ScenarioListener implements ResponseListener<String> {

    private List<String> mList;
    private LogsAdapter mAdapter;

    public ScenarioListener(List<String> list, LogsAdapter adapter) {
        mList = list;
        mAdapter = adapter;
    }

    @Override
// Path: library/src/main/java/com/siu/android/volleyball/BallResponse.java
// public class BallResponse<T> {
// 
//     public static enum ResponseSource {
//         LOCAL, CACHE, NETWORK
//     }
// 
//     protected Response<T> mResponse;
//     protected ResponseSource mResponseSource;
//     protected boolean mIdentical = false;
// 
//     /**
//      * Returns whether this response is considered successful.
//      */
//     public boolean isSuccess() {
//         return mResponse.isSuccess();
//     }
// 
//     public static <T> BallResponse<T> identical(ResponseSource responseSource) {
//         return new BallResponse<T>(Response.<T>success(null, null), responseSource, true);
//     }
// 
//     public static <T> BallResponse<T> success(T result) {
//         return new BallResponse<T>(Response.success(result, null));
//     }
// 
//     public static <T> BallResponse<T> success(T result, Cache.Entry cacheEntry) {
//         return new BallResponse<T>(Response.success(result, cacheEntry));
//     }
// 
//     public static <T> BallResponse<T> error(VolleyError error) {
//         return new BallResponse<T>(Response.<T>error(error), ResponseSource.NETWORK); // error cames always from network
//     }
// 
//     protected BallResponse(Response<T> response) {
//         this(response, null, false);
//     }
// 
//     protected BallResponse(Response<T> response, ResponseSource responseSource) {
//         this(response, responseSource, false);
//     }
// 
//     public BallResponse(Response<T> response, ResponseSource responseSource, boolean identical) {
//         mResponse = response;
//         mResponseSource = responseSource;
//         mIdentical = identical;
//     }
// 
//     public ResponseSource getResponseSource() {
//         return mResponseSource;
//     }
// 
//     public void setResponseSource(ResponseSource responseSource) {
//         this.mResponseSource = responseSource;
//     }
// 
//     public boolean isIntermediate() {
//         return mResponse.intermediate;
//     }
// 
//     public void setIntermediate(boolean intermediate) {
//         mResponse.intermediate = intermediate;
//     }
// 
//     public T getResult() {
//         return mResponse.result;
//     }
// 
//     public Cache.Entry getCacheEntry() {
//         return mResponse.cacheEntry;
//     }
// 
//     public VolleyError getError() {
//         return mResponse.error;
//     }
// 
//     public boolean isIdentical() {
//         return mIdentical;
//     }
// 
//     public void setIdentical(boolean identical) {
//         mIdentical = identical;
//     }
// }
// 
// Path: library/src/main/java/com/siu/android/volleyball/response/ResponseListener.java
// public interface ResponseListener<T> {
// 
//     public void onIntermediateResponse(T response, BallResponse.ResponseSource responseSource);
// 
//     public void onFinalResponse(T response, BallResponse.ResponseSource responseSource);
// 
//     public void onFinalResponseIdenticalToIntermediate(BallResponse.ResponseSource responseSource);
// }
// 
// Path: samples/src/main/java/com/siu/android/volleyball/samples/adapter/LogsAdapter.java
// public class LogsAdapter extends BindableAdapter<Log> {
// 
//     private List<Log> mList;
// 
//     public LogsAdapter(Context context, List<Log> list) {
//         super(context);
//         mList = list;
//     }
// 
//     @Override
//     public Log getItem(int position) {
//         return mList.get(position);
//     }
// 
//     @Override
//     public View newView(LayoutInflater inflater, int position, ViewGroup container) {
//         return inflater.inflate(R.layout.log_row, null);
//     }
// 
//     @Override
//     public void bindView(Log item, int position, View view) {
//         TextView contentTextView = (TextView) view.findViewById(R.id.content);
//         contentTextView.setText(item.getContent());
// 
//         TextView millisTextView = (TextView) view.findViewById(R.id.millis);
//         millisTextView.setText(String.valueOf(item.getMillis()));
//     }
// 
//     @Override
//     public int getCount() {
//         return mList.size();
//     }
// 
//     @Override
//     public long getItemId(int i) {
//         return i;
//     }
// }


// Path: samples/src/main/java/com/siu/android/volleyball/samples/volley/ScenarioListener.java
import com.siu.android.volleyball.BallResponse;
import com.siu.android.volleyball.response.ResponseListener;
import com.siu.android.volleyball.samples.adapter.LogsAdapter;
import java.util.List;

package com.siu.android.volleyball.samples.volley;



/**
 * Created by lukas on 9/3/13.
 */
public class ScenarioListener implements ResponseListener<String> {

    private List<String> mList;
    private LogsAdapter mAdapter;

    public ScenarioListener(List<String> list, LogsAdapter adapter) {
        mList = list;
        mAdapter = adapter;
    }

    @Override
    public void onIntermediateResponse(String response, BallResponse.ResponseSource responseSource) {