Swiftgram/Telegram/Watch/Extension/TGBridgeUserCache.h
2022-01-18 20:26:30 +04:00

20 lines
527 B
Objective-C

#import <Foundation/Foundation.h>
@class TGBridgeUser;
@class TGBridgeBotInfo;
@interface TGBridgeUserCache : NSObject
- (TGBridgeUser *)userWithId:(int64_t)userId;
- (NSDictionary *)usersWithIds:(NSArray<NSNumber *> *)indexSet;
- (void)storeUser:(TGBridgeUser *)user;
- (void)storeUsers:(NSArray *)users;
- (NSArray *)applyUserChanges:(NSArray *)userChanges;
- (TGBridgeBotInfo *)botInfoForUserId:(int32_t)userId;
- (void)storeBotInfo:(TGBridgeBotInfo *)botInfo forUserId:(int32_t)userId;
+ (instancetype)instance;
@end