VLCNetworkServerBrowserPlex.h 1.6 KB

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