public class AddToBlacklistMessage
extends com.app.user.account.SessionManager.BaseSessionHttpMsg2
构造器和说明 |
---|
AddToBlacklistMessage(java.lang.String blackUid,
java.lang.String targetUID,
com.app.common.common.AsyncActionCallback cb) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getBaseUrl()
url串
|
protected java.util.Map<java.lang.String,java.lang.String> |
getGetTextParam()
放到httpGet 参数中的参数对
规范接口请求,请把请求参数放在getPostTextParam中!!
|
protected java.lang.String |
getPostTextParam()
要放到post数据域的参数对
|
protected int |
onRawResultContent(java.lang.String content)
为了兼容IOS老版本(IOS在使用这个接口的时候,有些地方判断了内层的status,有些地方没判断只用了外层的status)
(1)拉黑成功,下发格式为:{"status":"200","msg":"success","data":{"status":"1"},"gdelay":"508"}
(2)拉黑失败,下发格式为:{"status”:”4001”,”msg”:”failed”,gdelay":"508"}
错误码统一放在外层:
200:拉黑成功
4000:拉黑失败,没有具体原因时返回
4001:拉黑失败,对方有特权
|
addSessionHeader, addSignature, beforeRequestStart, build, canSessionWait, checkRiskStatus, fillGetParam, getBatchRetry, getBatchType, getCallBack, getGetTextParamPub, getPostSessionData, getPostTextParamPub, getResultObj, getSessionTag, isBatch, isCanBatch, isCanWait, isReportAvailableStat, log, onCancel, onError, onMsgAddToQueue, onResultContent, setBatch, setBatchRetry, setBatchType, setCallback, setCanBatch, setCanWait, setNeedCheckStatus, setNetworkLiveData, setReportAvailableStat, setResultObject, setSessionTag, show, userGETMethod
report, setListener, setNeedEncrypt, setReport, setSenorsReport
addHeaders, canRetry, cleanHeader, disabledHeartbeat, enabledHeartbeat, enableMultipartMode, getConnectTimeout, getHeaders, getId, getIpFrom, getListener, getMethod, getPriority, getProtocol, getReadTimeout, getRealRetryExecuteCount, getRedirectUrl, getReqBinaryData, getReqTextData, getRetry, getTag, getType, getUrl, isCanceled, isMultipartMode, isNeedHeartbeat, isWrapToImCon, matchMsgId, matchTag, retry, setCanceled, setCanceled, setCanceled, setConnectTimeout, setId, setIpFrom, setMethod, setPriority, setProtocol, setReadTimeout, setRedirectUrl, setReqBinaryData, setReqTextData, setRetry, setTag, setType, setUrl, setWrapToImCon
public AddToBlacklistMessage(java.lang.String blackUid, java.lang.String targetUID, com.app.common.common.AsyncActionCallback cb)
public java.lang.String getBaseUrl()
com.app.user.account.SessionManager.BaseSessionHttpMsg2
getBaseUrl
在类中 com.app.user.account.SessionManager.BaseSessionHttpMsg2
protected java.util.Map<java.lang.String,java.lang.String> getGetTextParam()
com.app.user.account.SessionManager.BaseSessionHttpMsg2
getGetTextParam
在类中 com.app.user.account.SessionManager.BaseSessionHttpMsg2
protected java.lang.String getPostTextParam()
com.app.user.account.SessionManager.BaseSessionHttpMsg2
getPostTextParam
在类中 com.app.user.account.SessionManager.BaseSessionHttpMsg2
protected int onRawResultContent(java.lang.String content)
onRawResultContent
在类中 com.app.user.account.SessionManager.BaseSessionHttpMsg2
content
-