1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Kim Wittenburg 15062dfb27 Archive Project
2017-07-25 17:21:13 +02:00

49 lines
1.5 KiB
Objective-C
Executable File

//
// 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