-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTASearchOperation.h
More file actions
39 lines (33 loc) · 1.08 KB
/
STASearchOperation.h
File metadata and controls
39 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// STASearchOperation.h
// STACollapsableTable
//
// Created by Aaron Jubbal on 2/10/16.
// Copyright © 2016 Aaron Jubbal. All rights reserved.
//
#import <Foundation/Foundation.h>
@class STACellModel;
/**
@class STASearchOperation object that handles performing a search query while maintaining
the heirarchy of the collapsable table view. May be subclassed.
*/
@interface STASearchOperation : NSOperation
/**
The starting set of data to be searched.
*/
@property (atomic, strong) NSArray<STACellModel *> *allSearchResults;
/**
Unique search operation ID used for bookeeping purposes.
*/
@property (atomic, assign) NSUInteger operationID;
/**
The user-entered search string to perform a query on.
*/
@property (atomic, strong, readonly) NSString *searchString;
/**
The contents to be searched. This is set to what is passed in the
`initWithDataArray:withSearchString:` method.
*/
@property (nonatomic, strong, readonly) NSArray<STACellModel *> *dataArray;
- (instancetype)initWithDataArray:(NSArray<STACellModel *> *)dataArray withSearchString:(NSString *)searchString;
@end