[I6EGAA] api9 调整caller/callee相关接口参数

Signed-off-by: wangzhen <wangzhen346@huawei.com>
Change-Id: Ic4650e2d5154252cf7331d9399b1e496eaad3e7b
This commit is contained in:
wangzhen 2023-02-13 01:34:54 +00:00
parent 9acbe4d1ad
commit 8fc6d7ab6f

View File

@ -39,7 +39,7 @@ export interface OnReleaseCallback {
* @since 9
*/
export interface CalleeCallback {
(indata: rpc.MessageParcel): rpc.Sequenceable;
(indata: rpc.MessageSequence): rpc.Parcelable;
}
/**
@ -51,28 +51,28 @@ export interface CalleeCallback {
*/
export interface Caller {
/**
* Notify the server of Sequenceable type data.
* Notify the server of Parcelable type data.
* @param { string } method - The notification event string listened to by the callee.
* @param { rpc.Sequenceable } data - Notification data to the callee.
* @param { rpc.Parcelable } data - Notification data to the callee.
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @StageModelOnly
* @since 9
*/
call(method: string, data: rpc.Sequenceable): Promise<void>;
call(method: string, data: rpc.Parcelable): Promise<void>;
/**
* Notify the server of Sequenceable type data and return the notification result.
* Notify the server of Parcelable type data and return the notification result.
* @param { string } method - The notification event string listened to by the callee.
* @param { rpc.Sequenceable } data - Notification data to the callee.
* @returns { Promise<rpc.MessageParcel> } Returns the callee's notification result data.
* @param { rpc.Parcelable } data - Notification data to the callee.
* @returns { Promise<rpc.MessageSequence> } Returns the callee's notification result data.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @StageModelOnly
* @since 9
*/
callWithResult(method: string, data: rpc.Sequenceable): Promise<rpc.MessageParcel>;
callWithResult(method: string, data: rpc.Parcelable): Promise<rpc.MessageSequence>;
/**
* Clear service records.