阿里sdk

This commit is contained in:
Robin
2026-02-20 17:56:24 +08:00
parent 39524692e5
commit f3af234308
524 changed files with 58345 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
//
// HttpdnsResult.h
// AlicloudHttpDNS
//
// Created by xuyecan on 2024/5/15.
// Copyright © 2024 alibaba-inc.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