BBASMSubscriptionPlugin.h
1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// BBASMSubscriptionPlugin.h
// BBAMNP
//
// Created by baidu on 2019/12/13.
// Copyright © 2019 Baidu. All rights reserved.
//
#import <BBASchemeDispatcher/BBASchemeDispatcher.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const BBASMSubscriptionModuleName;
@interface BBASMSubscriptionPlugin : BBASDPluginBase
/**
* 描 述: 取消和查询订阅服务
* 示 例: baiduboxapp://swanAPI/subscription/subscribeService?params={}&callback=_bdbox_js_186&upgrade=0
* 文 档: http://es.baidu-int.com/index#/apidetail/990
* 备 注:
* ********** description ************
* @name: subscribeService
* @authority: swanAPI
* @path: /subscription/subscribeService
* @args: [{"name":"cb","value":"string"},{"name":"subscribeId","value":"string"},{"name":"type","value":"string="},{"name":"templateId","value":"string"}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.subscription.subscribeService"}}}
*/
- (void)subscribeService:(BBASchemeDispatcher *)dispatcher;
/**
* @brief 订阅查询和取消能力
* @param params 端能力传过来的参数
* @param appId appId
* @param completion 完成回调, 参数是二级回调返回的数据
* @return 一级回调
*/
+ (NSDictionary *)subscribeAction:(NSDictionary *)params
appId:(NSString *)appId
complete:(void(^)(NSDictionary *))completion;
@end
NS_ASSUME_NONNULL_END