OODiscoveryOptions.h
1 
10 #import <Foundation/Foundation.h>
11 
15 typedef NS_ENUM(NSUInteger, OODiscoveryType) {
16  OODiscoveryTypeMomentum = 0,
17  OODiscoveryTypePopular,
18  OODiscoveryTypeSimilarAssets,
19 };
20 
21 
22 @interface OODiscoveryOptions : NSObject
23 
24 @property OODiscoveryType type;
25 @property int limit;
26 @property NSTimeInterval timeout;
32 - (instancetype) init;
33 
38 - (instancetype) initWithType:(OODiscoveryType)type
39  limit:(int)limit
40  timeout:(NSTimeInterval)timeout;
41 
42 @end
int limit
the discovery type.
Definition: OODiscoveryOptions.h:25
OODiscoveryType type
Definition: OODiscoveryOptions.h:24
instancetype init()
the timeout value for http connections.
OODiscoveryOptions.
Definition: OODiscoveryOptions.h:22
NSTimeInterval timeout
limit of discovery results
Definition: OODiscoveryOptions.h:26