CNLiveMsgManager.h
2.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//
// CNLiveMsgManager.h
// CNLiveMsgTools
//
// Created by cnliveJunBo on 17/2/23.
// Copyright © 2017年 cnlive. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface CNLiveMsgManager : NSObject
+ (NSString *)getVersion;
+ (instancetype)sharedCNLiveMsgManager;
- (void)setToolsInfoWithInfoName:(NSString *)infoName
infoUrl:(NSString *)infoUrl;
- (NSDictionary *)getToolsInfo;
- (void)initCNLiveMsgToolsWithAppKey:(NSString *)appKey appId:(NSString *)appId;
- (void)onLineWithMsgToolsInfoId:(NSString *)infoId
infoName:(NSString *)infoName
infoUrl:(NSString *)infoUrl
success:(void (^)(NSString *toolsId))successBlock
error:(void (^)(NSInteger errors))errorBlock;
- (void)justOnLineSuccess:(void (^)(NSString *toolsId))successBlock
error:(void (^)(NSInteger errors))errorBlock;
- (void)stealthCNLiveMsgTools;
- (void)offLineCNLiveMsgTools:(BOOL)isReceivePush;
- (void)gatherTogether:(NSString *)targetId
messageCount:(int)messageCount
success:(void (^)(NSString *targetId))successBlock
error:(void (^)(NSInteger errors, NSString *targetId))errorBlock;
- (void)gatherIfNullCreate:(NSString *)targetId
messageCount:(int)messageCount
success:(void (^)(NSString *targetId))successBlock
error:(void (^)(NSInteger errors, NSString *targetId))errorBlock;
- (void)gatherTogether:(NSString *)targetId
isCreate:(BOOL)isCreate
messageCount:(int)messageCount
success:(void (^)(NSString *targetId))successBlock
error:(void (^)(NSInteger errors, NSString *targetId))errorBlock;
- (void)disperse:(NSString *)targetId
success:(void (^)(NSString *targetId))successBlock
error:(void (^)(NSInteger errors, NSString *targetId))errorBlock;
- (void)sendCarrier:(NSString *)carrier
type:(NSInteger)type
targetId:(NSString *)targetId
success:(void (^)(NSString *carrier, NSString *messageId, NSString *targetId, NSInteger type, NSString *infoId, NSString *infoName, NSString *infoUrl, long long goTime, long long comeTime))successBlock
error:(void (^)(NSInteger errors, NSString *messageId, NSString *targetId))errorBlock;
- (NSInteger)getOnLineStatus;
- (BOOL)judgeLoginStatus;
- (NSArray *)getLatestCarriers:(NSInteger)type targetId:(NSString *)targetId count:(int)count;
@end