KMRecommondInfo.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. ////
  2. //// KMRecommondInfo.h
  3. //// PDF Reader Pro Edition
  4. ////
  5. //// Created by Niehaoyu on 2023/4/11.
  6. ////
  7. //
  8. //#import <Foundation/Foundation.h>
  9. //
  10. //NS_ASSUME_NONNULL_BEGIN
  11. //
  12. //typedef enum : NSUInteger {
  13. // KMRecommondShowType_None,
  14. // KMRecommondShowType_All,//免费版跟付费版都需要显示
  15. // KMRecommondShowType_Pro,//只有付费用户显示
  16. // KMRecommondShowType_Lite,//只有免费用户显示
  17. //} KMRecommondShowType;
  18. //
  19. //@class KMRecommondInfo;
  20. //@interface KMRecommond : NSObject
  21. //
  22. //- (id)initWithDict:(NSDictionary *)dict;
  23. //
  24. //@property (nonatomic, strong) NSString *versionKey;
  25. //
  26. //@property (nonatomic, strong) NSString *name;
  27. //
  28. //@property (nonatomic, strong, readonly) NSMutableArray <KMRecommondInfo *> *recommondInfoArrM;
  29. //
  30. //@end
  31. //
  32. //@interface KMRecommondInfo : NSObject
  33. //
  34. //+ (NSString *)languageKey;
  35. //+ (NSString *)cacheDirs;
  36. //+ (BOOL)isDarkMode;
  37. //
  38. //- (id)initWithDict:(NSDictionary *)dict;
  39. //
  40. //- (void)updateValue:(NSString *)value forKey:(NSString *)key;
  41. //
  42. //@property (nonatomic, assign) BOOL show;//是否显示,内部有做了时间区间判断
  43. //
  44. //@property (nonatomic, assign) KMRecommondShowType showType;
  45. //
  46. //@property (nonatomic, strong) NSDate *startDate;
  47. //
  48. //@property (nonatomic, strong) NSDate *endDate;
  49. //
  50. //@property (nonatomic, strong) NSString *versionKey;//版本号,唯一标识符
  51. //
  52. //@property (nonatomic, assign) BOOL showCloseBtn;//是否显示关闭按钮,(左下角广告需要)
  53. //
  54. //@property (nonatomic, strong) NSImage *normalImage;//APP互推,常规状态下的图片
  55. //
  56. //@property (nonatomic, strong) NSImage *hoverImage;//APP互推悬浮状态下的图片
  57. //
  58. //@property (nonatomic, strong) NSImage *iconImage;//广告显示图片(自适应多语)
  59. //
  60. //@property (nonatomic, strong) NSString *title;//名称(自适应多语)
  61. //
  62. //@property (nonatomic, strong) NSString *tooltips;//提示语(自适应多语)
  63. //
  64. //@property (nonatomic, strong) NSString *linkURL;//跳转链接(自适应多语)
  65. //
  66. ////Firebase
  67. //@property (nonatomic, strong) NSString *firebaseEvent;//
  68. //
  69. //@property (nonatomic, strong) NSString *firebasePropertyKey;//
  70. //
  71. //@property (nonatomic, strong) NSString *firebasePropertyValue;//
  72. //
  73. //@end
  74. //
  75. //NS_ASSUME_NONNULL_END