12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //
- // KMRecommondManager.h
- // PDF Reader Pro Edition
- //
- // Created by Niehaoyu on 2023/4/11.
- //
- #import <Foundation/Foundation.h>
- #import "KMRecommondInfo.h"
- NS_ASSUME_NONNULL_BEGIN
- //接口文档:https://www.showdoc.com.cn/p/645bf52c14b161408feb760a6e0583b4
- //配置说明文档:https://docs.google.com/spreadsheets/d/1anoKSGpI2piMUbOXtRBSaKHg8uh3x6iYwe4x_pzrRbM/edit#gid=0
- #define kTestMode 1
- #if kTestMode
- #define kRecommondInfoURL @"http://test-store.kdan.cn:3019"
- #else
- #define kRecommondInfoURL @"https://store.filmagepro.com:3018"
- #endif
- #define KMRecommondDatasUpdateNoti @"KMRecommondDatasUpdateNoti"
- typedef enum : NSUInteger {
- KMRecommondAPP_None,
- KMRecommondAPP_PDFReaderProMacLite,//PDF Reader Pro
- KMRecommondAPP_PDFReaderProMacDMG,
- KMRecommondAPP_PDFReaderProMacPro,
- KMRecommondAPP_RecordIt,//Record It
- KMRecommondAPP_RecordItPro,
- KMRecommondAPP_RecordItDMG,
- KMRecommondAPP_FilmageScreen,//Filmage Screen
- KMRecommondAPP_FilmageScreenPro,
- KMRecommondAPP_FilmageScreenDMG,
- KMRecommondAPP_FilmageEditorMac,//Filmage Editor
- KMRecommondAPP_FilmageEditorMacDMG,
- KMRecommondAPP_FilmageConverterMac,//Filmage Converter
- KMRecommondAPP_FilmageConverterMacPro,
- KMRecommondAPP_FilmageConverterMacDMG,
- KMRecommondAPP_FilmagePlayerMac,//Filmage Player
- KMRecommondAPP_FilmagePlayerMacPro,
- KMRecommondAPP_FilmagePlayerMacDMG,
- KMRecommondAPP_PDFReaderProIOS,//PDF Reader Pro iOS
- KMRecommondAPP_PDFReaderProIOSPro,
- KMRecommondAPP_PDFReaderProAndroid,
- KMRecommondAPP_PDFMasterMac,//PDF Master
- KMRecommondAPP_PDFMasterMacPro,
- KMRecommondAPP_PDFMasterMacDMG
- } KMRecommondAPP;
- @interface KMRecommondManager : NSObject
- @property (nonatomic, strong, readonly) KMRecommond *pdfProRecommond;
- @property (nonatomic, strong, readonly) KMRecommond *othersRecommond;
- @property (nonatomic, strong, readonly) KMRecommond *advertisimentRecommond;
- + (KMRecommondManager *)manager;
- - (void)loadDataWithAppType:(KMRecommondAPP)appType completionHandler:(void (^)(NSError *error))handler;
- - (void)loadDataWithAppName:(NSString *)appName completionHandler:(void (^)(NSError *error))handler;
- @end
- NS_ASSUME_NONNULL_END
|