目录

InteractionArg

Class Info

public class InteractionArg implements Parcelable

定义Modem交互接口参数类。android.os.Parcelable接口的实现类。

Public Method Summary

Qualifier and Type

Method Name and Description

int

getType()

获取本次请求操作类型。

void

setType(int type)

设置本次请求的操作类型。

int

getSn()

获取本次请求编号。

void

setSn(int sn)

设置本次请求编号。

Object

getArgs()

获取本次请求的业务参数。

void

setArgs(Object args)

设置本次请求的业务参数。

Public Methods

[h2]getType

Method

public int getType()

获取本次请求操作类型。

Returns

Type

Description

int

请求的操作类型,取值范围为:NotifyType和StateType。

[h2]setType

Method

public void setType(int type)

设置本次请求的操作类型。

Parameters

Name

Description

type

本次请求的操作类型,取值范围为:NotifyType和StateType。

[h2]getSn

Method

public int getSn()

获取本次请求的编号。

Returns

Type

Description

int

本次请求的编号。

[h2]setSn

Method

public void setSn(int sn)

设置本次请求的编号。

Parameters

Name

Description

sn

请求编号,每一次与modem的交互请求对应一个唯一的编号。

[h2]getArgs

Method

public Object getArgs()

获取本次请求的业务参数。

Returns

Type

Description

Object

获取本次请求的业务参数。

[h2]setArgs

Method

public void setArgs(Object args)

设置本次请求的业务参数。

Parameters

Name

Description

args

请求的业务参数。

  • 当 type=StateType.SET_MODEM_CACHE_THRESHOLD时,所需的业务参数为SetRptThresholdInfo类型。
  • 其余type下,无需传递业务参数,args置为空既可。