blob: 9f941e703e12a7efc8db52b0e353a20f5c9753a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#import "SearchThingsAction.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SearchThingsAction
- (QSObject *)searchFor:(QSObject *)directObject
{
NSString *contents = [directObject displayName];
if (contents) {
NSDictionary *parameters = @{@"query": contents};
[ThingsHelper callRoute:ThingsURLRouteSearch withParameters:parameters];
} else {
NSLog(@"Could not get the text of the Things object.");
}
return directObject;
}
@end
NS_ASSUME_NONNULL_END
|