public class CampaignDownload
extends android.os.AsyncTask<java.lang.Void,java.lang.Void,java.lang.String>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OK_CODE |
Constructor and Description |
---|
CampaignDownload(ContextManager contextManager,
Campaign campaign) |
CampaignDownload(ContextManager contextManager,
Notification notification) |
Modifier and Type | Method and Description |
---|---|
void |
onException(java.lang.Exception e)
Exception 콜백
|
void |
responseCallback(java.lang.String code,
java.lang.String message,
java.lang.String responseDate)
API 호출 결과 콜백
|
void |
responseCodeCallback(int responseCode)
HTTP 응답코드 콜백
|
void |
setDirectory(java.io.File directory)
다운로드 디렉토리 설정
|
void |
setTimeout(int timeout)
API 타임아웃 설정
|
public static final java.lang.String OK_CODE
public CampaignDownload(ContextManager contextManager, Campaign campaign)
public CampaignDownload(ContextManager contextManager, Notification notification)
public void setDirectory(java.io.File directory)
public void setTimeout(int timeout)
public void responseCodeCallback(int responseCode)
public void responseCallback(java.lang.String code, java.lang.String message, java.lang.String responseDate)
code
- 응답코드message
- 응답메시지responseDate
- 응답시간, yyyyMMddHHmmsspublic void onException(java.lang.Exception e)