forked from iosre/WeChatRobotForExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWCRGeneralCommander.h
28 lines (23 loc) · 1.1 KB
/
WCRGeneralCommander.h
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
#import "../WeChatRobotForExample.h"
typedef void (^QRCodeDownloadCallback)(NSString *path);
@interface WCRGeneralCommander : NSObject <UIAlertViewDelegate>
@property (nonatomic, retain) NSMutableString *conversation;
@property (nonatomic, assign) NSUInteger dailyPromotionIndex;
@property (nonatomic, copy) QRCodeDownloadCallback qrCodeDownloadCallback;
+ (instancetype)sharedCommander;
- (NSArray *)allContacts;
- (void)maskMyselfInGroup:(NSString *)groupID;
- (BOOL)amIInGroup:(NSString *)groupID;
- (NSString *)nameOfUser:(NSString *)userID;
- (NSString *)nameOfUser:(NSString *)userID inGroup:(NSString *)groupID;
- (BOOL)isGroupInvitationURL:(NSString *)URLString;
- (void)scheduleNotifications;
- (void)handleNotification:(UILocalNotification *)notification;
- (void)clearAllSessions;
- (void)promptDoNotDisturb;
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
- (void)saveDailyPromotionIndex;
- (void)saveConversation;
- (void)downloadQRCodeOfUser:(NSString *)userID withCompletion:(QRCodeDownloadCallback)completion;
- (void)saveQRCodePathOfUser:(NSString *)userID;
@end