// Path: qshttp/src/main/java/org/song/http/framework/ability/HttpCallback.java
// public interface HttpCallback {
// 
//     void onSuccess(ResponseParams response);
// 
//     void onFailure(HttpException e);
// 
// }
// 
// Path: qshttp/src/main/java/org/song/http/framework/ability/HttpCallbackEx.java
// public interface HttpCallbackEx extends HttpCallback {
// 
//     void onStart();
// 
//     void onEnd();
// 
//     //返回true 则不会回调
//     boolean isDestroy();
// }
// 
// Path: qshttp/src/main/java/org/song/http/framework/ability/IHttpProgress.java
// public interface IHttpProgress {
//     //当前进度 文件大小 文件名/标记
//     void onProgress(long rwLen, long allLen, String mark);
// 
// }


import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import org.song.http.framework.ability.HttpCallback;
import org.song.http.framework.ability.HttpCallbackEx;
import org.song.http.framework.ability.IHttpProgress;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
                    Object[] arr = (Object[]) message.obj;
                    ((IHttpProgress) cb).onProgress((long) arr[0], (long) arr[1], (String) arr[2]);
                }
                break;
        }

    }


    /**
     * 添加回调类
     *
     * @return 返回int 需保存 处理完网络数据回调主线程时带上
     */
    public static int AddHttpCallback(HttpCallback cb) {
        return getInstance().addHttpDataCallback(cb);
    }

    /**
     * 移除回调类
     */
    public static void removeHttpCallback(int mThreadWhat) {
        getInstance().sparseArray.remove(mThreadWhat);
    }

    /**
     * 成功的处理
     */
    public static void Success(ResponseParams obj, boolean sync) {
        Message msg = Message.obtain();
// Path: qshttp/src/main/java/org/song/http/framework/ability/HttpCallback.java
// public interface HttpCallback {
// 
//     void onSuccess(ResponseParams response);
// 
//     void onFailure(HttpException e);
// 
// }
// 
// Path: qshttp/src/main/java/org/song/http/framework/ability/HttpCallbackEx.java
// public interface HttpCallbackEx extends HttpCallback {
// 
//     void onStart();
// 
//     void onEnd();
// 
//     //返回true 则不会回调
//     boolean isDestroy();
// }
// 
// Path: qshttp/src/main/java/org/song/http/framework/ability/IHttpProgress.java
// public interface IHttpProgress {
//     //当前进度 文件大小 文件名/标记
//     void onProgress(long rwLen, long allLen, String mark);
// 
// }


// Path: qshttp/src/main/java/org/song/http/framework/ThreadHandler.java
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import org.song.http.framework.ability.HttpCallback;
import org.song.http.framework.ability.HttpCallbackEx;
import org.song.http.framework.ability.IHttpProgress;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

                    Object[] arr = (Object[]) message.obj;
                    ((IHttpProgress) cb).onProgress((long) arr[0], (long) arr[1], (String) arr[2]);
                }
                break;
        }

    }


    /**
     * 添加回调类
     *
     * @return 返回int 需保存 处理完网络数据回调主线程时带上
     */
    public static int AddHttpCallback(HttpCallback cb) {
        return getInstance().addHttpDataCallback(cb);
    }

    /**
     * 移除回调类
     */
    public static void removeHttpCallback(int mThreadWhat) {
        getInstance().sparseArray.remove(mThreadWhat);
    }

    /**
     * 成功的处理
     */
    public static void Success(ResponseParams obj, boolean sync) {
        Message msg = Message.obtain();
        msg.what = obj.requestID();