forked from iosre/WeChatRobotForExample
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWCRUserCommander.h
More file actions
25 lines (20 loc) · 901 Bytes
/
Copy pathWCRUserCommander.h
File metadata and controls
25 lines (20 loc) · 901 Bytes
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
#import "../WeChatRobotForExample.h"
#import "WCRGeneralCommander.h"
typedef void (^ContactSearchCallback)(CContact *searchedContact);
@interface WCRUserCommander : WCRGeneralCommander
@property (nonatomic, copy) ContactSearchCallback contactSearchCallback;
@property (nonatomic, retain) FindContactSearchViewCellInfo *cellInfo;
@property (nonatomic, retain) MMSearchBar *bar;
@property (nonatomic, retain) MMUISearchBar *uiBar;
+ (instancetype)sharedCommander;
- (NSString *)myName;
- (NSString *)myID;
- (void)encodeUserAlias:(NSString *)userID;
- (NSArray *)allUsers;
- (NSString *)allUsersDescription;
- (BOOL)isAdmin:(NSString *)userID;
- (void)deleteUserAndSession:(NSString *)userID;
- (BOOL)isContact:(NSString *)userID;
- (void)searchUser:(NSString *)userID completion:(ContactSearchCallback)completion;
- (void)tryAddingUser:(NSString *)userID withGreetings:(NSString *)greetings;
@end