hank
2017-06-14 3f9b5125cd79f60e878a3f93708d1254048fd1fb
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
//
//  TWTRScribeMediaDetails.h
//  TwitterCore
//
//  Created by Kang Chen on 11/18/15.
//  Copyright © 2015 Twitter Inc. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import "TWTRScribeSerializable.h"
 
NS_ASSUME_NONNULL_BEGIN
 
/**
 *  Mapping to `MediaType` in scribing.
 */
typedef NS_ENUM(NSUInteger, TWTRScribeMediaType) {
    /**
     *  Consumer video uploaded to Twitter.
     */
    TWTRScribeMediaTypeConsumerVideo = 1,
    /**
     *  Amplify videos.
     */
    TWTRScribeMediaTypeProfessionalVideo = 2,
    /**
     *  Gif as a video.
     */
    TWTRScribeMediaTypeGIF = 3,
    /**
     *  Vine as a video.
     */
    TWTRScribeMediaTypeVine = 4
};
 
@interface TWTRScribeMediaDetails : NSObject <TWTRScribeSerializable>
 
@property (nonatomic, readonly, copy) NSString *publisherID;
@property (nonatomic, readonly, copy) NSString *contentID;
@property (nonatomic, readonly) TWTRScribeMediaType mediaType;
 
- (instancetype)init NS_UNAVAILABLE;
/**
 *  Initializes a new media detail scribe item.
 *
 *  @param publisherID Owner (publisher) of the content. This is often the Twitter user.
 *  @param contentID   UUID to the content. This is often the entity ID.
 *  @param mediaType   Type of media included.
 *
 *  @return A new media detail scribe item.
 */
- (instancetype)initWithPublisherID:(NSString *)publisherID contentID:(NSString *)contentID mediaType:(TWTRScribeMediaType)mediaType;
 
@end
 
NS_ASSUME_NONNULL_END