PLVVodPPT

Objective-C

@interface PLVVodPPT : NSObject

@property (nonatomic, copy) NSString *vid;

@property (nonatomic, copy) NSDictionary <NSString *, PLVVodPPTPage *> * _Nullable pagesDict;

@property (nonatomic, copy) NSArray <PLVVodPPTPage *>* _Nullable pages;

/// 获取在线数据
+ (void)requestPPTWithVid:(NSString *)vid completion:(void (^)(PLVVodPPT * _Nullable ppt, NSError * _Nullable error))completion;
/// 获取缓存数据
+ (void)requestCachePPTWithVid:(NSString *)vid completion:(void (^)(PLVVodPPT * _Nullable ppt, NSError * _Nullable error))completion;
/// 已缓存
+ (BOOL)isExistWithVid:(NSString *)vid;

@end

Swift

class PLVVodPPT : NSObject

Undocumented

  • vid

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *vid

    Swift

    var vid: String { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy) NSDictionary <NSString *, PLVVodPPTPage *> * _Nullable pagesDict

    Swift

    var pagesDict: [String : PLVVodPPTPage]? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray <PLVVodPPTPage *>* _Nullable pages

    Swift

    var pages: [PLVVodPPTPage]? { get set }
  • 获取在线数据

    Declaration

    Objective-C

    + (void)requestPPTWithVid:(nonnull NSString *)vid
                   completion:(nonnull void (^)(PLVVodPPT *_Nullable,
                                                NSError *_Nullable))completion;

    Swift

    class func request(withVid vid: String, completion: @escaping (PLVVodPPT?, Error?) -> Void)
  • 获取缓存数据

    Declaration

    Objective-C

    + (void)requestCachePPTWithVid:(nonnull NSString *)vid
                        completion:(nonnull void (^)(PLVVodPPT *_Nullable,
                                                     NSError *_Nullable))completion;

    Swift

    class func requestCachePPT(withVid vid: String, completion: @escaping (PLVVodPPT?, Error?) -> Void)
  • 已缓存

    Declaration

    Objective-C

    + (BOOL)isExistWithVid:(nonnull NSString *)vid;

    Swift

    class func isExist(withVid vid: String) -> Bool