Files
waf-platform/HttpDNSSDK/sdk/ios/NewHttpDNS/Model/HttpdnsResult.h
2026-03-05 02:44:43 +08:00

43 lines
998 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// HttpdnsResult.h
// NewHttpDNS
//
// Created by xuyecan on 2024/5/15.
// Copyright © 2024 trustapp.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface HttpdnsResult : NSObject
@property (nonatomic, copy) NSString *host;
@property (nonatomic, copy) NSArray<NSString *> *ips;
@property (nonatomic, copy) NSArray<NSString *> *ipv6s;
// 最后一次ipv4地址更新时间戳Unix时间单位秒
@property (nonatomic, assign) NSTimeInterval lastUpdatedTimeInterval;
// 最后一次ipv6地址更新时间戳Unix时间单位秒
@property (nonatomic, assign) NSTimeInterval v6LastUpdatedTimeInterval;
// 对应ipv4的ttl单位秒
@property (nonatomic, assign) NSTimeInterval ttl;
// 对应ipv6的ttl单位秒
@property (nonatomic, assign) NSTimeInterval v6ttl;
- (BOOL)hasIpv4Address;
- (BOOL)hasIpv6Address;
- (nullable NSString *)firstIpv4Address;
- (nullable NSString *)firstIpv6Address;
@end
NS_ASSUME_NONNULL_END