forked from Ascoware/get-iplayer-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DownloadHistoryEntry.m
30 lines (26 loc) · 988 Bytes
/
DownloadHistoryEntry.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// DownloadHistoryEntry.m
// Get_iPlayer GUI
//
// Created by Thomas Willson on 10/15/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "DownloadHistoryEntry.h"
@implementation DownloadHistoryEntry
- (instancetype)initWithPID:(NSString *)temp_pid showName:(NSString *)temp_showName episodeName:(NSString *)temp_episodeName type:(NSString *)temp_type someNumber:(NSString *)temp_someNumber downloadFormat:(NSString *)temp_downloadFormat downloadPath:(NSString *)temp_downloadPath
{
if (!(self = [super init])) return nil;
_pid=[temp_pid copy];
_showName=[temp_showName copy];
_episodeName=[temp_episodeName copy];
_type=[temp_type copy];
_someNumber=[temp_someNumber copy];
_downloadFormat=[temp_downloadFormat copy];
_downloadPath=[temp_downloadPath copy];
return self;
}
- (NSString *)entryString
{
return [NSString stringWithFormat:@"%@|%@|%@|%@|%@|%@|%@",_pid,_showName,_episodeName,_type,_someNumber,_downloadFormat,_downloadPath];
}
@end