00001 #import <Foundation/Foundation.h>
00002 #import "Vzaar.h"
00003
00004 @protocol VZVideoUploadDelegate;
00005 @protocol VZVideoUploader;
00006
00007 @protocol VzaarTransport <NSObject>
00008
00009 -(NSDictionary *)userDetailsForUsername:(NSString *)username error:(NSError **)error;
00010 -(NSDictionary *)accountDetailsForAccountWithId:(NSUInteger)accountId error:(NSError **)error;
00011
00012 -(NSArray *)videosForUser:(NSString *)userName
00013 withTitleFilter:(NSString *)titleFilter
00014 page:(NSUInteger)page
00015 ofPagesOfLength:(NSUInteger)pageLength
00016 reverseSortOrder:(BOOL)reverseSort
00017 error:(NSError **)error;
00018
00019
00020 -(NSDictionary *)detailsOfVideoWithId:(NSUInteger)videoId options:(VzaarVideoDetailOptions)options error:(NSError **)error;
00021 -(NSString *)userName:(NSError **)error;
00022
00023 -(id <VZVideoUploader>)beginUploadOfVideoWithTitle:(NSString *)title
00024 description:(NSString *)videoDescription
00025 profile:(VzaarVideoProfile)videoProfile
00026 filePath:(NSString *)location
00027 replacingVideoWithId:(NSUInteger)existingVideoId
00028 allowUntrustedFiles:(BOOL)allowUntrusted
00029 delegate:(id <VZVideoUploadDelegate>)delegate;
00030
00031 -(BOOL)updateVideoWithId:(NSUInteger)videoId withTitle:(NSString *)title description:(NSString *)videoDescription error:(NSError **)error;
00032 -(BOOL)deleteVideoWithId:(NSUInteger)videoId error:(NSError **)error;
00033
00034 @end