1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGSpotlightIndexData.h
2016-02-25 01:03:51 +01:00

23 lines
619 B
Objective-C

#import <Foundation/Foundation.h>
@class TGConversation;
@class TGUser;
@interface TGSpotlightIndexItem : NSObject <NSCopying>
@property (nonatomic, readonly) int64_t peerId;
@property (nonatomic, strong, readonly) NSString *title;
@property (nonatomic, strong, readonly) NSString *avatarUrl;
- (instancetype)initWithConversation:(TGConversation *)conversation;
- (instancetype)initWithUser:(TGUser *)user;
@end
@interface TGSpotlightIndexData : NSObject
@property (nonatomic, strong, readonly) NSMutableSet *indexedItems;
@property (nonatomic, strong, readonly) NSMutableDictionary *indexedItemsByPeerId;
@end