Build ChatListUI

This commit is contained in:
Ali
2020-02-22 15:38:54 +04:00
parent f57d6b6168
commit 5380b12805
1510 changed files with 643 additions and 309 deletions

View File

@@ -0,0 +1,23 @@
#import <Foundation/Foundation.h>
#import <LegacyComponents/TGMediaSelectionContext.h>
@class TGMediaSelectionContext;
@interface TGMediaPickerGallerySelectedItemsModel : NSObject
@property (nonatomic, copy) void (^selectionUpdated)(bool reload, bool incremental, bool add, NSInteger index);
@property (nonatomic, readonly) NSArray *items;
@property (nonatomic, readonly) NSArray *selectedItems;
@property (nonatomic, readonly) NSInteger totalCount;
@property (nonatomic, readonly) NSInteger selectedCount;
- (instancetype)initWithSelectionContext:(TGMediaSelectionContext *)selectionContext;
- (instancetype)initWithSelectionContext:(TGMediaSelectionContext *)selectionContext items:(NSArray *)items;
- (void)addSelectedItem:(id<TGMediaSelectableItem>)selectedItem;
- (void)removeSelectedItem:(id<TGMediaSelectableItem>)selectedItem;
- (void)clear;
@end