Class Info |
|---|
public class InteractionResponse implements Parcelable 定义Modem交互以及连接信息的回调消息类。android.os.Parcelable接口的实现类。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | 获取消息结果码。 |
void | setResultCode(int code) 设置消息结果码。 |
int | getSn() 获取本次响应的请求编号。 |
void | setSn(int sn) 设置本次响应的请求编号。 |
int | 获取本次响应的业务数据类型。 |
void | setDataType(int dataType) 设置本次响应的数据的业务类型。 |
int | 获取本次响应类型。 |
void | setResponseType(int responseType) 设置本次响应类型。 |
ArrayList<Byte> | getData() 获取本次响应的结果数据。 |
void | setData(ArrayList<Byte> data) 设置本次响应的结果数据。 |
Method |
|---|
public int getResultCode() 获取消息结果码。 |
Returns
Type | Description |
|---|---|
int | 获取消息错误码,0:成功, 非0:失败,具体可见错误码。 |
Method |
|---|
public void setCode(int code) 设置消息结果码。 |
Parameters
Name | Description |
|---|---|
code | 设置消息结果码,0:成功, 非0:失败,具体可见错误码。 |
Method |
|---|
public int getSn() 获取本次响应的请求编号, 与用户下发请求时的编号一一对应。 |
Returns
Type | Description |
|---|---|
int | 本次响应的请求编号。 |
Method |
|---|
public void setSn(int sn) 设置本次响应的请求编号。 |
Parameters
Name | Description |
|---|---|
sn | 请求编号,每一次与modem的交互请求对应一个唯一的编号。 |
Method |
|---|
public int getDataType() 获取本次响应的业务数据类型。 |
Returns
Type | Description |
|---|---|
int | 获取本次响应的业务数据类型,具体参见DataType。 |
Method |
|---|
public void setDataType(int dataType) 设置本次响应的数据的业务类型。 |
Parameters
Name | Description |
|---|---|
dataType | 设置本次响应的业务数据类型,具体参见DataType。 |
Method |
|---|
public int getResponseType() 获取本次响应类型。 |
Returns
Type | Description |
|---|---|
int | 获取本次响应类型,0:请求的结果回复, 1:数据主动上报。 |
Method |
|---|
public void setResponseType(int responseType) 设置本次响应类型。 |
Parameters
Name | Description |
|---|---|
responseType | 设置本次响应类型,0:请求的结果回复, 1:数据主动上报。 |