OOOoyalaAdSpot.h
1 
9 #import "OOManagedAdSpot.h"
10 #import "OOAuthorizableItem.h"
11 #import "OOPlayableItem.h"
12 #import "OOOoyalaAPIClient.h"
13 
17 @interface OOOoyalaAdSpot : OOManagedAdSpot <OOAuthorizableItem, OOPlayableItem>
18 
19 @property (readonly, nonatomic) NSMutableArray *streams;
20 @property (readonly, nonatomic) NSString *embedCode;
21 @property (readonly, nonatomic) BOOL authorized;
22 @property (readonly, nonatomic) OOAuthCode authCode;
23 @property (nonatomic, assign) BOOL heartbeatRequired;
34 - (instancetype)initWithTime:(NSNumber *)theTime
35  clickURL:(NSURL *)theClickURL
36  trackingURLs:(NSArray *)theTrackingURLs
37  embedCode:(NSString *)theEmbedCode
38  api:(OOOoyalaAPIClient *)theAPI;
39 
46 - (instancetype)initWithDictionary:(NSDictionary *)data
47  api:(OOPlayerAPIClient *)theAPI;
48 
54 - (OOReturnState)updateWithDictionary:(NSDictionary *)data;
55 
61 - (void)fetchPlaybackInfoWithCallback:(void (^)(BOOL success))callback;
62 
67 - (NSArray *)embedCodesToAuthorize;
68 
69 @end
Base class for concrete ad spot implementations.
Definition: OOManagedAdSpot.h:19
OOAuthCode authCode
Definition: OOOoyalaAdSpot.h:22
NSMutableArray * streams
Definition: OOOoyalaAdSpot.h:19
NSArray * embedCodesToAuthorize()
NSString * embedCode
The OOOoyalaAdSpot&#39;s Embed Code.
Definition: OOOoyalaAdSpot.h:20
A single ooyala video ad associated with specific time.
Definition: OOOoyalaAdSpot.h:17
BOOL authorized
Definition: OOOoyalaAdSpot.h:21
Ooyala API client implementation.
Definition: OOOoyalaAPIClient.h:26
BOOL heartbeatRequired
Definition: OOOoyalaAdSpot.h:23