Archive Project
This commit is contained in:
48
Notifications for YouTube/NYTVideo.h
Executable file
48
Notifications for YouTube/NYTVideo.h
Executable file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// NYTVideo.h
|
||||
// Notifications for YouTube
|
||||
//
|
||||
// Created by Kim Wittenburg on 14.07.13.
|
||||
// Copyright (c) 2013 Kim Wittenburg. All rights reserved.
|
||||
//
|
||||
|
||||
/* A NYTVideo represents a YouTube video's metadata.
|
||||
*/
|
||||
@interface NYTVideo : NSObject
|
||||
|
||||
/* A unique id that identifies the video.
|
||||
*/
|
||||
@property (readonly) NSString *videoID;
|
||||
|
||||
/* The channel id of the channel that uploaded the video. See channelID in NYTUser for more details on channel ids.
|
||||
*/
|
||||
@property (readonly) NSString *uploaderID;
|
||||
|
||||
/* The date this video was uploaded to YouTube. Precise on 1 second.
|
||||
*/
|
||||
@property (readonly) NSDate *uploadedDate;
|
||||
|
||||
/* The title of the video as displayed on the website. Use this to display a video title to a user. Do not use this to uniquely identify a video. use the videoID instead for that purpose.
|
||||
*/
|
||||
@property (readonly) NSString *title;
|
||||
|
||||
/* The URL on YouTube that runs the video. Open this URL to display this video on YouTube.
|
||||
*/
|
||||
@property (readonly) NSString *URL;
|
||||
|
||||
/* The description of the video as displayed on the website. Display this with the video's title to help the user identify a video.
|
||||
*/
|
||||
@property (readonly) NSString *videoDescription;
|
||||
|
||||
/* The display name of the channel that uploaded the video. See displayName in NYTUser for more information.
|
||||
*/
|
||||
@property (readonly) NSString *uploaderDisplayName;
|
||||
|
||||
/* Initializes this video by parsing the given node. The node should be a media:group node of a video feed entry.
|
||||
*/
|
||||
- (id)initWithMediaGroupNode:(NSXMLNode *)node;
|
||||
|
||||
- (BOOL)isEqual:(id)object;
|
||||
- (BOOL)isEqualToVideo:(NYTVideo *)video;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user