2015-10-01 18:19:52 +02:00
|
|
|
#import <SSignalKit/SSignalKit.h>
|
|
|
|
|
|
|
|
@interface TGGlobalMessageSearchSignals : NSObject
|
|
|
|
|
|
|
|
+ (SSignal *)search:(NSString *)query includeMessages:(bool)includeMessages itemMapping:(id (^)(id))itemMapping;
|
|
|
|
+ (SSignal *)searchMessages:(NSString *)query peerId:(int64_t)peerId accessHash:(int64_t)accessHash itemMapping:(id (^)(id))itemMapping;
|
|
|
|
|
2016-02-25 01:03:51 +01:00
|
|
|
+ (SSignal *)searchDialogs:(NSString *)query itemMapping:(id (^)(id))itemMapping;
|
|
|
|
|
2015-10-01 18:19:52 +02:00
|
|
|
+ (void)clearRecentResults;
|
|
|
|
+ (void)addRecentPeerResult:(int64_t)peerId;
|
|
|
|
+ (void)removeRecentPeerResult:(int64_t)peerId;
|
|
|
|
+ (SSignal *)recentPeerResults:(id (^)(id))itemMapping;
|
|
|
|
|
|
|
|
@end
|