RQCommonManager.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // RQCommonManager.h
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2021/8/19.
  6. //
  7. #import <Foundation/Foundation.h>
  8. /// 秘卷选项
  9. typedef NS_ENUM(NSInteger, RQMiExamType) {
  10. /// 秘卷一
  11. RQMiExamType_One = 0,
  12. /// 秘卷二
  13. RQMiExamType_Two = 1,
  14. };
  15. #define RQ_COMMON_MANAGER [RQCommonManager sharedInstance]
  16. NS_ASSUME_NONNULL_BEGIN
  17. @interface RQCommonManager : NSObject
  18. @singleton(RQCommonManager);
  19. //@property (nonatomic, readwrite, assign) AFNetworkReachabilityStatus netStatus;
  20. @property (nonatomic, readwrite, assign) RQHomePageCarType carType;
  21. @property (nonatomic, readwrite, copy) NSString *carTypeStr;
  22. @property (nonatomic, readwrite, assign) RQHomePageSubjectType subject;
  23. @property (nonatomic, readwrite, copy) NSString *subjectStr;
  24. @property (nonatomic, readwrite, assign) RQMiExamType miExamType;
  25. @property (nonatomic, readwrite, copy) NSString *historyEmailStr;
  26. @property (nonatomic, readwrite, copy) NSArray *treeListArr;
  27. @property (nonatomic, readwrite, copy) NSArray *dspListArr;
  28. @property (nonatomic, readwrite, copy) NSArray *vipTypeListArr;
  29. @property (nonatomic, readwrite, assign) BOOL SDJK_APP_ICON_NEED_CHANGE;
  30. - (void)saveObjectWithObject:(id)object ForKey:(NSString* )key;
  31. - (id)getObjectWithKey:(NSString *)key;
  32. - (NSString *)getCarTypeStrWithCarType:(RQHomePageCarType)carType;
  33. - (NSString *)getCarTypeEnStrWithCarType:(RQHomePageCarType)carType;
  34. - (NSString *)getCarTypeSimpleCNStrWithCarType:(RQHomePageCarType)carType;
  35. - (NSString *)getSubjectTypeStrWithSubjectType:(RQHomePageSubjectType)subjecType;
  36. - (NSString *)getCarTypeSimpleCNStrWithCarTypeNew:(RQHomePageCarType)carType;
  37. - (NSString *)getSubjectTypeNumStrWithSubjectType:(RQHomePageSubjectType)subjecType;
  38. - (NSString *)getMiExamTypeNumStrWithMiExamType:(RQMiExamType)miExamType;
  39. - (void)checkVersionWithComplete:(VoidBlock_Bool)complete;
  40. - (void)checkAppStoreVersionWithComplete:(VoidBlock_Bool)complete;
  41. - (void)downLoadWithFilePath:(NSString *)filePath;
  42. @end
  43. NS_ASSUME_NONNULL_END