BUTNCServiceManager.h 866 Bytes
//
// Created by bytedance on 2020/12/15.
//

#import <Foundation/Foundation.h>
#import "BUTNCRequestParam.h"

@interface BUTNCServiceConfig : NSObject

@property (nonatomic, copy, readonly) NSString *appKey;

@property(nonatomic, copy, readonly) NSString *tncUrl;

@property(nonatomic, copy, readonly) NSArray<NSString *> *tncDomains;

@property(nonatomic, copy, readonly) BUTNCRequestParam *(^tncRequestParam)(void);
@end

__attribute__((objc_subclassing_restricted))
@interface BUTNCServiceManager : NSObject

+ (void)registerTNCServiceWithAppKey:(NSString *)appKey tncDomains:(NSArray<NSString *> *)tncDomains tncUrl:(NSString *)tncUrl requestParam:(BUTNCRequestParam * (^)(void))param;

+ (void)unregisterTNCServiceWithAppKey:(NSString *)appKey;

+ (NSString *)TNCUrlWithBaseUrl:(NSString *)baseUrl;

+ (void)refreshTNCDomainsWithAppKey:(NSString *)appKey;
@end