#import "TQPrewarmConfig.h"

@implementation TQPrewarmConfig

- (instancetype)init {
    if (self = [super init]) {
        _environment = TQPrewarmEnvironmentProd;
        _manifestUrl = nil;
        _poolSize = 1;
        _enablePool = YES;
        _preferredLanguage = nil;
        _injectUserAgent = YES;
        _userAgentExtra = @"";
    }
    return self;
}

+ (instancetype)defaultConfig {
    return [[TQPrewarmConfig alloc] init];
}

- (id)copyWithZone:(NSZone *)zone {
    TQPrewarmConfig *c = [[TQPrewarmConfig allocWithZone:zone] init];
    c.environment = self.environment;
    c.manifestUrl = self.manifestUrl;
    c.poolSize = self.poolSize;
    c.enablePool = self.enablePool;
    c.preferredLanguage = self.preferredLanguage;
    c.injectUserAgent = self.injectUserAgent;
    c.userAgentExtra = [self.userAgentExtra copy];
    return c;
}

@end
