KMRecommondManager.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // KMRecommondManager.h
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by Niehaoyu on 2023/4/11.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "KMRecommondInfo.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. //接口文档:https://www.showdoc.com.cn/p/645bf52c14b161408feb760a6e0583b4
  11. //配置说明文档:https://docs.google.com/spreadsheets/d/1anoKSGpI2piMUbOXtRBSaKHg8uh3x6iYwe4x_pzrRbM/edit#gid=0
  12. #define kTestMode 1
  13. #if kTestMode
  14. #define kRecommondInfoURL @"http://test-store.kdan.cn:3019"
  15. #else
  16. #define kRecommondInfoURL @"https://store.filmagepro.com:3018"
  17. #endif
  18. #define KMRecommondDatasUpdateNoti @"KMRecommondDatasUpdateNoti"
  19. typedef enum : NSUInteger {
  20. KMRecommondAPP_None,
  21. KMRecommondAPP_PDFReaderProMacLite,//PDF Reader Pro
  22. KMRecommondAPP_PDFReaderProMacDMG,
  23. KMRecommondAPP_PDFReaderProMacPro,
  24. KMRecommondAPP_RecordIt,//Record It
  25. KMRecommondAPP_RecordItPro,
  26. KMRecommondAPP_RecordItDMG,
  27. KMRecommondAPP_FilmageScreen,//Filmage Screen
  28. KMRecommondAPP_FilmageScreenPro,
  29. KMRecommondAPP_FilmageScreenDMG,
  30. KMRecommondAPP_FilmageEditorMac,//Filmage Editor
  31. KMRecommondAPP_FilmageEditorMacDMG,
  32. KMRecommondAPP_FilmageConverterMac,//Filmage Converter
  33. KMRecommondAPP_FilmageConverterMacPro,
  34. KMRecommondAPP_FilmageConverterMacDMG,
  35. KMRecommondAPP_FilmagePlayerMac,//Filmage Player
  36. KMRecommondAPP_FilmagePlayerMacPro,
  37. KMRecommondAPP_FilmagePlayerMacDMG,
  38. KMRecommondAPP_PDFReaderProIOS,//PDF Reader Pro iOS
  39. KMRecommondAPP_PDFReaderProIOSPro,
  40. KMRecommondAPP_PDFReaderProAndroid,
  41. KMRecommondAPP_PDFMasterMac,//PDF Master
  42. KMRecommondAPP_PDFMasterMacPro,
  43. KMRecommondAPP_PDFMasterMacDMG
  44. } KMRecommondAPP;
  45. @interface KMRecommondManager : NSObject
  46. @property (nonatomic, strong, readonly) KMRecommond *pdfProRecommond;
  47. @property (nonatomic, strong, readonly) KMRecommond *othersRecommond;
  48. @property (nonatomic, strong, readonly) KMRecommond *advertisimentRecommond;
  49. + (KMRecommondManager *)manager;
  50. - (void)loadDataWithAppType:(KMRecommondAPP)appType completionHandler:(void (^)(NSError *error))handler;
  51. - (void)loadDataWithAppName:(NSString *)appName completionHandler:(void (^)(NSError *error))handler;
  52. @end
  53. NS_ASSUME_NONNULL_END