Refactor the artworks urls code so we don't have to update three different arrays each time.

This commit is contained in:
Damiano Galassi committed 2017-05-27 19:01:04 +02:00
1 parent daa7fc3604
commit 0d3b0ea3ec
12 files changed
+155 -120

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
//
// SBRemoteImage.m
// Subler
//
// Created by Damiano Galassi on 27/05/17.
//
//
#import "SBRemoteImage.h"
@implementation SBRemoteImage
- (instancetype)initWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL providerName:(NSString *)providerName
{
self = [super init];
if (self)
{
_URL = fullSizeURL;
_thumbURL = thumbURL;
_providerName = providerName;
}
return self;
}
+ (instancetype)remoteImageWithURL:(NSURL *)fullSizeURL thumbURL:(NSURL *)thumbURL providerName:(NSString *)providerName
{
return [[self alloc] initWithURL:fullSizeURL thumbURL:thumbURL providerName:providerName];
}
@end