Swiftgram/submodules/AsyncDisplayKit/Source/ASNetworkImageLoadInfo.mm
2019-11-09 23:14:22 +04:00

33 lines
725 B
Plaintext

//
// ASNetworkImageLoadInfo.mm
// Texture
//
// Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import "ASNetworkImageLoadInfo.h"
#import "Private/ASNetworkImageLoadInfo+Private.h"
@implementation ASNetworkImageLoadInfo
- (instancetype)initWithURL:(NSURL *)url sourceType:(ASNetworkImageSourceType)sourceType downloadIdentifier:(id)downloadIdentifier userInfo:(id)userInfo
{
if (self = [super init]) {
_url = [url copy];
_sourceType = sourceType;
_downloadIdentifier = downloadIdentifier;
_userInfo = userInfo;
}
return self;
}
#pragma mark - NSCopying
- (id)copyWithZone:(NSZone *)zone
{
return self;
}
@end