#import "Constants.h" #import #import NS_ASSUME_NONNULL_BEGIN @interface TextParsingHelper : NSObject /** Parses a string and returns a dictionary of parameters according to the following rules: * The first line is parsed as title * If the first line contains >> then everything after >> is considered notes. * If a line starts with #, the rest will be interpreted as a comma separated list of tags. * If a line starts with @, the rest will be interpreted as the date. * If a line starts with !, the rest will be interpreted as the deadline. @param text the @return A dictionary with the parameters for the `add` route of the things API */ + (NSMutableDictionary *)parseText:(NSString*)text; @end NS_ASSUME_NONNULL_END