123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- //
- // KMRecommondInfo.h
- // PDF Reader Pro Edition
- //
- // Created by Niehaoyu on 2023/4/11.
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef enum : NSUInteger {
- KMRecommondShowType_None,
- KMRecommondShowType_All,//免费版跟付费版都需要显示
- KMRecommondShowType_Pro,//只有付费用户显示
- KMRecommondShowType_Lite,//只有免费用户显示
- } KMRecommondShowType;
- @class KMRecommondInfo;
- @interface KMRecommond : NSObject
- - (id)initWithDict:(NSDictionary *)dict;
- @property (nonatomic, strong) NSString *versionKey;
- @property (nonatomic, strong) NSString *name;
- @property (nonatomic, strong, readonly) NSMutableArray <KMRecommondInfo *> *recommondInfoArrM;
- @end
- @interface KMRecommondInfo : NSObject
- + (NSString *)languageKey;
- + (NSString *)cacheDirs;
- + (BOOL)isDarkMode;
- - (id)initWithDict:(NSDictionary *)dict;
- - (void)updateValue:(NSString *)value forKey:(NSString *)key;
- @property (nonatomic, assign) BOOL show;//是否显示,内部有做了时间区间判断
- @property (nonatomic, assign) KMRecommondShowType showType;
- @property (nonatomic, strong) NSDate *startDate;
- @property (nonatomic, strong) NSDate *endDate;
- @property (nonatomic, strong) NSString *versionKey;//版本号,唯一标识符
- @property (nonatomic, assign) BOOL showCloseBtn;//是否显示关闭按钮,(左下角广告需要)
- @property (nonatomic, strong) NSImage *normalImage;//APP互推,常规状态下的图片
- @property (nonatomic, strong) NSImage *hoverImage;//APP互推悬浮状态下的图片
- @property (nonatomic, strong) NSImage *iconImage;//广告显示图片(自适应多语)
- @property (nonatomic, strong) NSString *title;//名称(自适应多语)
- @property (nonatomic, strong) NSString *tooltips;//提示语(自适应多语)
- @property (nonatomic, strong) NSString *linkURL;//跳转链接(自适应多语)
- //Firebase
- @property (nonatomic, strong) NSString *firebaseEvent;//
- @property (nonatomic, strong) NSString *firebasePropertyKey;//
- @property (nonatomic, strong) NSString *firebasePropertyValue;//
- @end
- NS_ASSUME_NONNULL_END
|