/***************************************************************************** * VLCPlexWebAPI.h * VLC for iOS ***************************************************************************** * Copyright (c) 2015 VideoLAN. All rights reserved. * * Authors: Pierre Sagaspe * * Refer to the COPYING file of the official project for license. *****************************************************************************/ #import @interface VLCPlexWebAPI : NSObject - (BOOL)PlexCreateIdentification:(NSString *)username password:(NSString *)password; - (NSArray *)PlexBasicAuthentification:(NSString *)username password:(NSString *)password; - (NSString *)PlexAuthentification:(NSString *)username password:(NSString *)password; - (NSString *)urlAuth:(NSString *)url autentification:(NSString *)auth; - (NSData *)HttpRequestWithCookie:(NSURL *)url cookies:(NSArray *)authToken HTTPMethod:(NSString *)method; - (NSURL *)CreatePlexStreamingURL:(NSString *)adress port:(NSString *)port videoKey:(NSString *)key username:(NSString *)username deviceInfo:(NSMutableArray *)deviceInfo session:(NSString *)session; - (void)stopSession:(NSString *)adress port:(NSString *)port session:(NSString *)session; - (NSInteger)MarkWatchedUnwatchedMedia:(NSString *)adress port:(NSString *)port videoRatingKey:(NSString *)ratingKey state:(NSString *)state authentification:(NSString *)auth; - (NSString *)getFileSubtitleFromPlexServer:(NSMutableArray *)mutableMediaObject modeStream:(BOOL)modeStream; - (NSString *)getSession; - (NSData *)PlexDeviceInfo:(NSArray *)cookies; @end