mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
33 lines
725 B
Plaintext
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
|