public class ReqResponse<T extends Payload> extends Response<T>
HuobiSocket
.Constructor and Description |
---|
ReqResponse(int version,
String msgType,
int retCode,
String retMsg)
Constructs the response.
|
Modifier and Type | Method and Description |
---|---|
long |
getRequestIndex() |
int |
getRetCode() |
String |
getRetMsg() |
void |
setRequestIndex(long requestIndex) |
getMsgType, getPayload, getVersion, setPayload, toString
public ReqResponse(int version, String msgType, int retCode, String retMsg)
version
- For client version.msgType
- Message type.retCode
- Echo back the error data. 200 for Success, for other results
please check HTTP return code for reference.retMsg
- Return tips.public long getRequestIndex()
public void setRequestIndex(long requestIndex)
public int getRetCode()
public String getRetMsg()
Copyright © 2014–2015. All rights reserved.