VLCNetworkServerBrowserPlex.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*****************************************************************************
  2. * VLCNetworkServerBrowserPlex.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2015-2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Tobias Conradi <videolan # tobias-conradi.de>
  9. * Pierre Sagaspe <pierre.sagaspe # me.com>
  10. *
  11. * Refer to the COPYING file of the official project for license.
  12. *****************************************************************************/
  13. #import "VLCNetworkServerBrowser-Protocol.h"
  14. #import "VLCNetworkServerLoginInformation.h"
  15. NS_ASSUME_NONNULL_BEGIN
  16. @interface VLCNetworkServerBrowserPlex : NSObject <VLCNetworkServerBrowser>
  17. - (instancetype)initWithName:(NSString *)name host:(NSString *)addressOrName portNumber:(NSNumber *)portNumber path:(NSString *)path authentificication:(NSString *)auth NS_DESIGNATED_INITIALIZER;
  18. - (instancetype)initWithName:(NSString *)name url:(NSURL *)url auth:(NSString *)auth;
  19. - (instancetype)initWithLogin:(VLCNetworkServerLoginInformation *)login;
  20. - (instancetype)init NS_UNAVAILABLE;
  21. @end
  22. @interface VLCNetworkServerBrowserItemPlex : NSObject <VLCNetworkServerBrowserItem>
  23. - (instancetype)initWithDictionary:(NSDictionary *)dictionary currentURL:(NSURL *)currentURL authentificication:(NSString *)auth;
  24. @property (nonatomic, readonly, nullable) NSString *filename;
  25. @property (nonatomic, readonly, nullable) NSString *duration;
  26. @property (nonatomic, readonly, nullable) NSString *subtitleType;
  27. @property (nonatomic, readonly, nullable) NSURL *subtitleURL;
  28. @property (nonatomic, readonly, nullable) NSURL *thumbnailURL;
  29. @property (nonatomic, readonly, nullable) NSURL *URLcontainer;
  30. @property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable;
  31. @end
  32. NS_ASSUME_NONNULL_END