mirror of
https://github.com/Sunnyyoung/WeChatTweak-macOS.git
synced 2025-05-23 06:46:10 +08:00
137 lines
3.3 KiB
Objective-C
137 lines
3.3 KiB
Objective-C
//
|
|
// WeChatTweakHeaders.h
|
|
// WeChatTweak
|
|
//
|
|
// Created by Sunnyyoung on 2017/8/11.
|
|
// Copyright © 2017年 Sunnyyoung. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <objc/runtime.h>
|
|
#import <objc/message.h>
|
|
|
|
@interface NSString (MD5)
|
|
|
|
- (NSString *)md5String;
|
|
|
|
@end
|
|
|
|
@interface WeChat : NSObject
|
|
|
|
@property(nonatomic) BOOL isAppTerminating;
|
|
|
|
+ (instancetype)sharedInstance;
|
|
- (void)lock:(id)block;
|
|
- (void)showMainWindow;
|
|
- (void)startANewChatWithContact:(id)contact;
|
|
|
|
@end
|
|
|
|
@interface MMSearchResultItem : NSObject
|
|
|
|
@property(nonatomic) unsigned long long type; // 0 is single chat, 1 is group chat
|
|
@property(readonly, nonatomic) NSString *identifier;
|
|
|
|
@end
|
|
|
|
@interface MessageData: NSObject
|
|
|
|
@property(nonatomic) unsigned int messageType;
|
|
@property(nonatomic) unsigned int msgStatus;
|
|
@property(retain, nonatomic) NSString *toUsrName;
|
|
@property(retain, nonatomic) NSString *fromUsrName;
|
|
@property(retain, nonatomic) NSString *msgContent;
|
|
@property(nonatomic) unsigned int msgCreateTime;
|
|
@property(nonatomic) unsigned int mesLocalID;
|
|
|
|
- (BOOL)isSendFromSelf;
|
|
|
|
@end
|
|
|
|
@interface WCContactData : NSObject
|
|
|
|
@property(nonatomic) unsigned int m_uiCertificationFlag;
|
|
@property(retain, nonatomic) NSString *m_nsHeadImgUrl;
|
|
@property(retain, nonatomic) NSString *m_nsNickName;
|
|
@property(retain, nonatomic) NSString *m_nsUsrName;
|
|
@property(retain, nonatomic) NSString *m_nsAliasName;
|
|
@property(retain, nonatomic) NSString *m_nsRemark;
|
|
@property(retain, nonatomic) NSString *m_nsFullPY;
|
|
@property(retain, nonatomic) NSString *m_nsRemarkPYShort;
|
|
@property(retain, nonatomic) NSString *m_nsRemarkPYFull;
|
|
@property(retain, nonatomic) NSString *wt_avatarPath;
|
|
|
|
- (BOOL)isChatStatusNotifyOpen;
|
|
|
|
@end
|
|
|
|
@interface ContactStorage : NSObject
|
|
|
|
- (WCContactData *)GetContact:(NSString *)session;
|
|
- (NSArray<WCContactData *> *)GetAllFriendContacts;
|
|
|
|
@end
|
|
|
|
@interface GroupStorage: NSObject
|
|
|
|
- (WCContactData *)GetGroupContact:(NSString *)session;
|
|
- (NSArray<WCContactData *> *)GetAllGroups;
|
|
- (NSArray<WCContactData *> *)GetGroupContactList:(NSInteger)arg1 ContactType:(NSInteger)arg2;
|
|
|
|
@end
|
|
|
|
@interface MMServiceCenter : NSObject
|
|
|
|
+ (id)defaultCenter;
|
|
- (id)getService:(Class)name;
|
|
|
|
@end
|
|
|
|
@interface MessageService: NSObject
|
|
|
|
- (id)GetMsgData:(id)arg1 svrId:(unsigned long long)arg2;
|
|
- (void)DelMsg:(id)arg1 msgList:(id)arg2 isDelAll:(BOOL)arg3 isManual:(BOOL)arg4;
|
|
- (void)AddLocalMsg:(id)arg1 msgData:(id)arg2;
|
|
- (void)notifyAddMsgOnMainThread:(id)arg1 msgData:(id)arg2;
|
|
|
|
@end
|
|
|
|
@interface AccountService: NSObject
|
|
|
|
- (BOOL)canAutoAuth;
|
|
- (void)AutoAuth;
|
|
- (void)onAuthOKOfUser:(id)arg1 withSessionKey:(id)arg2 withServerId:(id)arg3 autoAuthKey:(id)arg4 isAutoAuth:(BOOL)arg5;
|
|
|
|
@end
|
|
|
|
@interface LogoutCGI: NSObject
|
|
|
|
- (void)sendLogoutCGIWithCompletion:(id)arg1;
|
|
|
|
@end
|
|
|
|
@interface MMAvatarService: NSObject
|
|
|
|
- (NSString *)avatarCachePath;
|
|
|
|
@end
|
|
|
|
@protocol MASPreferencesViewController <NSObject>
|
|
|
|
@property(readonly, nonatomic) NSString *toolbarItemLabel;
|
|
@property(readonly, nonatomic) NSImage *toolbarItemImage;
|
|
@property(readonly, nonatomic) NSString *identifier;
|
|
|
|
@optional
|
|
@property(readonly, nonatomic) BOOL hasResizableHeight;
|
|
@property(readonly, nonatomic) BOOL hasResizableWidth;
|
|
|
|
@end
|
|
|
|
@interface MASPreferencesWindowController: NSWindowController
|
|
|
|
- (id)initWithViewControllers:(NSArray *)arg1;
|
|
|
|
@end
|