-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMediaObject.h
58 lines (45 loc) · 1.19 KB
/
MediaObject.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// MediaObject.h
// KyckClient
//
// Created by Kevin Musselman on 10/30/12.
//
//
#import <Foundation/Foundation.h>
#import "MemoryCache.h"
typedef enum
{
othermedia = 0,
photo,
video,
audio
} MediaType;
typedef enum
{
othervideo = 0,
youtube,
dailymotion
} VideoType;
@protocol MediaObjectDelegate <NSObject>
@optional
-(void)didSetPhotoURL;
@end
@interface MediaObject : NSObject
@property (nonatomic, strong) id<MediaObjectDelegate> delegate;
@property (nonatomic, strong) NSString *originalURL;
@property (nonatomic, strong) NSString *mediaID;
@property (nonatomic, strong) NSString *mediaURL;
@property (nonatomic, strong) NSString *photoURL;
@property (nonatomic, strong) NSNumber *photoRatio;
@property (nonatomic, readwrite) MediaType mtype;
@property (nonatomic, readwrite) VideoType vtype;
@property (nonatomic, readwrite) int numTries;
@property (nonatomic, readwrite) BOOL tryAgain;
@property (nonatomic, strong) MemoryCache *memoryCache;
+ (MemoryCache *)globalMemoryCache;
-(id)initWithDelegate:(id<MediaObjectDelegate>)del;
-(void)parseURL;
-(void)parseURLandRetrieve;
-(void)setParseUrl:(NSString *)url andRetrieve:(BOOL)ret;
-(void)storeInMemory;
@end