// Path: samples/src/main/java/com/siu/android/volleyball/samples/util/ScenarioUtils.java
// public class ScenarioUtils {
// 
//     public static final void waitSeveralSeconds(int seconds) {
//         try {
//             Thread.sleep(seconds * 1000);
//         } catch (InterruptedException e) {
//             throw new RuntimeException(e);
//         }
//     }
// }


import com.android.volley.Network;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.VolleyError;
import com.siu.android.volleyball.samples.util.ScenarioUtils;
import java.util.HashMap;
package com.siu.android.volleyball.samples.volley.fake;



/**
 * Created by lukas on 9/9/13.
 */
public class FakeNetwork implements Network {

    private boolean mSuccess = true;
    private boolean mNotModified = false;
    private int mWaitSeconds = 0;

    public FakeNetwork() {
    }

    public FakeNetwork(boolean success, boolean notModified, int waitSeconds) {
        mSuccess = success;
        mNotModified = notModified;
        mWaitSeconds = waitSeconds;
    }

    @Override
    public NetworkResponse performRequest(Request<?> request) throws VolleyError {
// Path: samples/src/main/java/com/siu/android/volleyball/samples/util/ScenarioUtils.java
// public class ScenarioUtils {
// 
//     public static final void waitSeveralSeconds(int seconds) {
//         try {
//             Thread.sleep(seconds * 1000);
//         } catch (InterruptedException e) {
//             throw new RuntimeException(e);
//         }
//     }
// }


// Path: samples/src/main/java/com/siu/android/volleyball/samples/volley/fake/FakeNetwork.java
import com.android.volley.Network;
import com.android.volley.NetworkResponse;
import com.android.volley.Request;
import com.android.volley.VolleyError;
import com.siu.android.volleyball.samples.util.ScenarioUtils;
import java.util.HashMap;

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



/**
 * Created by lukas on 9/9/13.
 */
public class FakeNetwork implements Network {

    private boolean mSuccess = true;
    private boolean mNotModified = false;
    private int mWaitSeconds = 0;

    public FakeNetwork() {
    }

    public FakeNetwork(boolean success, boolean notModified, int waitSeconds) {
        mSuccess = success;
        mNotModified = notModified;
        mWaitSeconds = waitSeconds;
    }

    @Override
    public NetworkResponse performRequest(Request<?> request) throws VolleyError {
        ScenarioUtils.waitSeveralSeconds(mWaitSeconds);