83 lines
4.9 KiB
Objective-C
83 lines
4.9 KiB
Objective-C
//
|
|
// QCloudCompleteMultipartUploadInfo.m
|
|
// QCloudCompleteMultipartUploadInfo
|
|
//
|
|
// Created by tencent
|
|
// Copyright (c) 2015年 tencent. All rights reserved.
|
|
//
|
|
// ██████╗ ██████╗██╗ ██████╗ ██╗ ██╗██████╗ ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ██╗ █████╗
|
|
// ██████╗
|
|
// ██╔═══██╗██╔════╝██║ ██╔═══██╗██║ ██║██╔══██╗ ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██║ ██╔══██╗██╔══██╗
|
|
// ██║ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ██║ ███████║██████╔╝
|
|
// ██║▄▄ ██║██║ ██║ ██║ ██║██║ ██║██║ ██║ ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ██║ ██╔══██║██╔══██╗
|
|
// ╚██████╔╝╚██████╗███████╗╚██████╔╝╚██████╔╝██████╔╝ ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗ ███████╗██║
|
|
// ██║██████╔╝
|
|
// ╚══▀▀═╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═╝╚═════╝
|
|
//
|
|
//
|
|
// _ __ _ _
|
|
// (_) / _| | | | |
|
|
// ___ ___ _ ____ ___ ___ ___ | |_ ___ _ __ __| | _____ _____| | ___ _ __ ___ _
|
|
// __ ___
|
|
// / __|/ _ \ '__\ \ / / |/ __/ _ \ | _/ _ \| '__| / _` |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \
|
|
// '__/ __|
|
|
// \__ \ __/ | \ V /| | (_| __/ | || (_) | | | (_| | __/\ V / __/ | (_) | |_) | __/
|
|
// | \__
|
|
// |___/\___|_| \_/ |_|\___\___| |_| \___/|_| \__,_|\___| \_/ \___|_|\___/| .__/
|
|
// \___|_| |___/
|
|
// ______ ______ ______ ______ ______ ______ ______ ______ | |
|
|
// |______|______|______|______|______|______|______|______| |_|
|
|
//
|
|
|
|
#import "QCloudCompleteMultipartUploadInfo.h"
|
|
|
|
#import "QCloudMultipartInfo.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
@implementation QCloudCompleteMultipartUploadInfo
|
|
|
|
+ (NSDictionary *)modelContainerPropertyGenericClass {
|
|
return @{
|
|
@"parts" : [QCloudMultipartInfo class],
|
|
};
|
|
}
|
|
|
|
+ (NSDictionary *)modelCustomPropertyMapper {
|
|
return @{
|
|
@"parts" : @"Part",
|
|
};
|
|
}
|
|
|
|
- (BOOL)modelCustomTransformToDictionary:(NSMutableDictionary *)dic {
|
|
return YES;
|
|
}
|
|
|
|
- (NSDictionary *)modelCustomWillTransformFromDictionary:(NSDictionary *)dic {
|
|
if (!dic) {
|
|
return dic;
|
|
}
|
|
NSMutableDictionary *transfromDic = [NSMutableDictionary dictionaryWithDictionary:dic];
|
|
NSArray *transformArrayKeypaths = @[
|
|
@"Part",
|
|
];
|
|
|
|
for (NSString *keyPath in transformArrayKeypaths) {
|
|
id object = [dic valueForKeyPath:keyPath];
|
|
if (!object) {
|
|
continue;
|
|
}
|
|
if ([object isKindOfClass:[NSNull class]]) {
|
|
continue;
|
|
}
|
|
if (![object isKindOfClass:[NSArray class]]) {
|
|
[transfromDic setValue:@[ object ] forKeyPath:keyPath];
|
|
}
|
|
}
|
|
|
|
return transfromDic;
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|