12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // AIInfoManager.h
- // PDF Reader Pro Edition
- //
- // Created by Niehaoyu on 2024/1/24.
- //
- #import <Foundation/Foundation.h>
- #import "VerificationManager.h"
- #define kDeviceAIStatusChangeNotification @"kDeviceAIStatusChangeNotification"
- #define kAIIconShowStateChangeNotification @"kAIIconShowStateChangeNotification"
- #define kAIIconShowIdentifyKey @"kAIIconShowIdentifyKey"
- NS_ASSUME_NONNULL_BEGIN
- typedef void(^AIActivityComplention)(NSDictionary *info, NSError *error);
- @class AIInfo;
- @interface AIInfoManager : NSObject
- + (AIInfoManager *)defaultManager;
- @property (nonatomic, assign) BOOL showAIIcon;
- @property (nonatomic, readonly) BOOL aiInfoValid;
- @property (nonatomic, strong) AIInfo *aiInfo;
- - (void)activateAIWithInfo:(NSDictionary *)info
- complention:(AIActivityComplention)complention;
- - (void)fetchAIInfoWithComplention:(AIActivityComplention)complention;
- - (void)restoreAIWithInfo:(NSDictionary *)info
- complention:(AIActivityComplention)complention;
- @end
- @interface AIInfo : NSObject
- - (id)initWithDict:(NSDictionary *)dict;
- @property (nonatomic, readonly) NSDictionary *infoDict;
- @property (nonatomic, readonly) BOOL validAIFunction;
- @property (nonatomic, readonly) NSString *cdKey;
- @property (nonatomic, readonly) int totalToken;
- @property (nonatomic, readonly) int usedTimes;
- @property (nonatomic, readonly) NSDate *startDate;
- @property (nonatomic, readonly) NSDate *endDate;
- @property (nonatomic, readonly) int remainingDays;
- @property (nonatomic, readonly) int pre_creditToken;
- @end
- NS_ASSUME_NONNULL_END
|