init
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.yutou.bilibili.interfaces;
|
||||
|
||||
public abstract class DownloadInterface {
|
||||
public void onDownload(String file){};
|
||||
public void onError(Exception e){};
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yutou.bilibili.interfaces;
|
||||
|
||||
public interface NetworkInterface {
|
||||
/**
|
||||
* 请求成功
|
||||
* @param data 请求参数
|
||||
* @param state http状态
|
||||
*/
|
||||
void httpGetData(Object data, int state);
|
||||
|
||||
/**
|
||||
* 请求异常
|
||||
* @param e 异常
|
||||
*/
|
||||
void httpError(Exception e);
|
||||
|
||||
void onCookie(String cookie);
|
||||
}
|
||||
Reference in New Issue
Block a user