httpdns_ios_demo/httpdns_ios_demo/Helper/HTTPDNSDemoUtils.h (37 lines of code) (raw):
//
// HTTPDNSDemoUtils.h
// httpdns_ios_demo
//
// Created by Miracle on 2024/7/5.
//
#import <Foundation/Foundation.h>
#import "SettingInfoModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
settingInfoReuseExpiredIPKey,
settingInfoPersistentCacheKey,
settingInfoHTTPSRequestKey,
settingInfoPreResolveAfterNetworkChangedKey,
settingInfoLogEnabledKey,
settingInfoRegionKey,
settingInfoTimeoutKey
} settingInfoKey;
extern NSString *const settingRegionKey;
extern NSString *const settingTimeoutKey;
extern NSString *const settingPreResolveListKey;
extern NSString *const settingCleanHostDomainKey;
@interface HTTPDNSDemoUtils : NSObject
+ (int)accountId;
+ (NSString *)secretKey;
+ (NSArray *)domains;
+ (NSArray *)inputDomainsHistory;
+ (void)inputCacheAdd:(NSString *)domain;
+ (void)inputCacheRemove:(NSString *)domain;
+ (void)inputCacheRemoveAll;
+ (NSString *)exampleTextUrlString;
+ (NSString *)exampleVideoUrlString;
+ (NSString *)exampleImageUrlString;
+ (NSArray<SettingInfoModel *> *)settingInfo;
+ (void)settingInfoChanged:(NSString *)cacheKey value:(id)value;
+ (NSString *)settingInfo:(settingInfoKey)cacheKey;
+ (BOOL)settingInfoBool:(settingInfoKey)cacheKey;
+ (NSArray *)settingDomainListFor:(NSString *)cacheKey;
+ (void)settingDomainListAdd:(NSString *)domain forKey:(NSString *)cacheKey;
+ (void)settingDomainListRemoveAllForKey:(NSString *)cacheKey;
+ (NSURL *)helpCenterURL;
@end
NS_ASSUME_NONNULL_END