forked from Ascoware/get-iplayer-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSeries.m
41 lines (33 loc) · 918 Bytes
/
Series.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
31
32
33
34
35
36
37
38
39
40
41
//
// Series.m
// Get_iPlayer GUI
//
// Created by Thomas Willson on 7/19/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "Series.h"
@implementation Series
- (void) encodeWithCoder: (NSCoder *)coder
{
[coder encodeObject: _showName forKey:@"showName"];
[coder encodeObject: _added forKey:@"added"];
[coder encodeObject: _tvNetwork forKey:@"tvNetwork"];
[coder encodeObject: _lastFound forKey:@"lastFound"];
}
- (instancetype) initWithCoder: (NSCoder *)coder
{
if (!(self = [super init])) return nil;
_showName = [coder decodeObjectForKey:@"showName"];
_added = [coder decodeObjectForKey:@"added"];
_tvNetwork = [coder decodeObjectForKey:@"tvNetwork"];
_lastFound = [coder decodeObjectForKey:@"lastFound"];
return self;
}
+ (BOOL)supportsSecureCoding {
return YES;
}
- (id)description
{
return [NSString stringWithFormat:@"%@ (%@)", _showName,_tvNetwork];
}
@end