#import "ShowInThingsAction.h" NS_ASSUME_NONNULL_BEGIN @implementation ShowInThingsAction - (QSObject *)showObject:(QSObject *)directObject { NSSet *validTypes = [NSSet setWithObjects:kAppSectionType, kTagType, kAreaType, kProjectType, kTaskType, nil]; if ([validTypes containsObject:directObject.primaryType]) { NSDictionary *contents = [directObject objectForType:directObject.primaryType]; if (contents) { NSString *uuid = [contents objectForKey:@"uuid"]; if (uuid) { NSDictionary *parameters = @{@"id": uuid}; [ThingsHelper callRoute:ThingsURLRouteShow withParameters:parameters]; } else { NSLog(@"Things object did not have a uuid."); } } else { NSLog(@"Could not get the contents of the Things object."); } } return directObject; } @end NS_ASSUME_NONNULL_END