JXEpisode.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // JXEpisode.h
  3. // AICity
  4. //
  5. // Created by TogetherWatch on 2025-10-13.
  6. // Feature: 003-ios-api-https - 剧星短剧平台API接入
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * 剧集模型
  12. */
  13. @interface JXEpisode : NSObject
  14. @property (nonatomic, assign) NSInteger id;
  15. @property (nonatomic, copy) NSString *jxEpisodeId;
  16. @property (nonatomic, assign) NSInteger dramaId;
  17. @property (nonatomic, assign) NSInteger episodeNumber; // UI: "第13集"
  18. @property (nonatomic, copy, nullable) NSString *title; // UI: "大学宿舍关系 (五)"
  19. @property (nonatomic, assign) NSInteger duration; // 时长(秒)
  20. @property (nonatomic, assign) BOOL isPaid; // UI: 是否显示¥图标
  21. @property (nonatomic, copy, nullable) NSString *uploadDate; // UI: "08月25日"
  22. @property (nonatomic, copy, nullable) NSString *thumbnail;
  23. @property (nonatomic, copy, nullable) NSString *contentType; // 内容类型
  24. // FileID播放方式(DRM推荐)
  25. @property (nonatomic, copy, nullable) NSString *appId; // 腾讯云 AppID
  26. @property (nonatomic, copy, nullable) NSString *fileId; // 腾讯云 FileID
  27. @property (nonatomic, copy, nullable) NSString *psign; // 播放签名(JWT)
  28. - (instancetype)initWithDictionary:(NSDictionary *)dict;
  29. - (NSDictionary *)toDictionary;
  30. @end
  31. NS_ASSUME_NONNULL_END