提交 54980a8e 编写于 作者: Z zhuhan

common event manager fix

Signed-off-by: Nzhuhan <zhuhan10@huawei.com>
Change-Id: I4d805f94f6232a20f7c37f0266b79fc11759c243
上级 c304a437
...@@ -193,12 +193,7 @@ publish(event: string, callback: AsyncCallback\<void>): void ...@@ -193,12 +193,7 @@ publish(event: string, callback: AsyncCallback\<void>): void
|错误码ID |错误信息 | |错误码ID |错误信息 |
|-----------|--------------------| |-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app| |1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error| |1500007 |message send error|
|1500008 |CEMS error| |1500008 |CEMS error|
|1500009 |system error| |1500009 |system error|
...@@ -242,16 +237,12 @@ publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\ ...@@ -242,16 +237,12 @@ publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\
**错误码:** **错误码:**
|错误码ID |错误信息 | |错误码ID |错误信息 |
|-----------|--------------------| |-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app| |1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error| |1500007 |message send error|
|1500008 |CEMS error| |1500008 |CEMS error|
|1500009 |system error| |1500009 |system error|
**示例:** **示例:**
...@@ -303,12 +294,7 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback\<void>): vo ...@@ -303,12 +294,7 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback\<void>): vo
**错误码:** **错误码:**
|错误码ID |错误信息 | |错误码ID |错误信息 |
|-----------|--------------------| |-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app| |1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error| |1500007 |message send error|
|1500008 |CEMS error| |1500008 |CEMS error|
|1500009 |system error| |1500009 |system error|
...@@ -360,12 +346,7 @@ publishAsUser(event: string, userId: number, options: CommonEventPublishData, ca ...@@ -360,12 +346,7 @@ publishAsUser(event: string, userId: number, options: CommonEventPublishData, ca
**错误码:** **错误码:**
|错误码ID |错误信息 | |错误码ID |错误信息 |
|-----------|--------------------| |-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app| |1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error| |1500007 |message send error|
|1500008 |CEMS error| |1500008 |CEMS error|
|1500009 |system error| |1500009 |system error|
...@@ -417,19 +398,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallbac ...@@ -417,19 +398,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallbac
| subscribeInfo | [CommonEventSubscribeInfo](#commoneventsubscribeinfo) | 是 | 表示订阅信息。 | | subscribeInfo | [CommonEventSubscribeInfo](#commoneventsubscribeinfo) | 是 | 表示订阅信息。 |
| callback | AsyncCallback\<[CommonEventSubscriber](#commoneventsubscriber)> | 是 | 表示创建订阅者的回调方法。 | | callback | AsyncCallback\<[CommonEventSubscriber](#commoneventsubscriber)> | 是 | 表示创建订阅者的回调方法。 |
**错误码:**
|错误码ID |错误信息 |
|-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error|
|1500008 |CEMS error|
|1500009 |system error|
**示例:** **示例:**
...@@ -480,19 +448,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\<CommonEventS ...@@ -480,19 +448,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\<CommonEventS
| --------------------------------------------------------- | ---------------- | | --------------------------------------------------------- | ---------------- |
| Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | 返回订阅者对象。 | | Promise\<[CommonEventSubscriber](#commoneventsubscriber)> | 返回订阅者对象。 |
**错误码:**
|错误码ID |错误信息 |
|-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error|
|1500008 |CEMS error|
|1500009 |system error|
**示例:** **示例:**
```ts ```ts
...@@ -534,19 +489,6 @@ subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\<CommonEven ...@@ -534,19 +489,6 @@ subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\<CommonEven
| subscriber | [CommonEventSubscriber](#commoneventsubscriber) | 是 | 表示订阅者对象。 | | subscriber | [CommonEventSubscriber](#commoneventsubscriber) | 是 | 表示订阅者对象。 |
| callback | AsyncCallback\<[CommonEventData](#commoneventdata)> | 是 | 表示接收公共事件数据的回调函数。 | | callback | AsyncCallback\<[CommonEventData](#commoneventdata)> | 是 | 表示接收公共事件数据的回调函数。 |
**错误码:**
|错误码ID |错误信息 |
|-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error|
|1500008 |CEMS error|
|1500009 |system error|
**示例:** **示例:**
```ts ```ts
...@@ -608,19 +550,6 @@ unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\<void>): ...@@ -608,19 +550,6 @@ unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\<void>):
| subscriber | [CommonEventSubscriber](#commoneventsubscriber) | 是 | 表示订阅者对象。 | | subscriber | [CommonEventSubscriber](#commoneventsubscriber) | 是 | 表示订阅者对象。 |
| callback | AsyncCallback\<void> | 否 | 表示取消订阅的回调方法。 | | callback | AsyncCallback\<void> | 否 | 表示取消订阅的回调方法。 |
**错误码:**
|错误码ID |错误信息 |
|-----------|--------------------|
|1500001 |Want action is null |
|1500002 |sandbox application can not send common event|
|1500003 |common event send frequency too high|
|1500004 |not System services or System app|
|1500005 |subscriber can not found|
|1500006 |usreId is invalid|
|1500007 |message send error|
|1500008 |CEMS error|
|1500009 |system error|
**示例:** **示例:**
```ts ```ts
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册