package com.kfzs.duanduan.utils.net;

/**
 * <pre>
 *     sinlov
 *
 *     /\__/\
 *    /`    '\
 *  ≈≈≈ 0  0 ≈≈≈ Hello world!
 *    \  --  /
 *   /        \
 *  /          \
 * |            |
 *  \  ||  ||  /
 *   \_oo__oo_/≡≡≡≡≡≡≡≡o
 *
 * </pre>
 * Created by sinlov on 17/3/30.
 */
public interface UploadFileCallBack {
    int PROGRESS_START = 0;
    int PROGRESS_FINISH = 99;
    int PROGRESS_SUCCESS = 100;
    int PROGRESS_ERROR = -1;

    int ERROR_FILE_IS_EMPTY = -2;
    int ERROR_OUT_OF_TIME = -3;
    int ERROR_FILE_MD5_HASH_ERROR = -4;

    void responseUploadError(int code, String msg);

    void responseUploadSuccess(String msg);

    void uploadProgress(int progress);
}
