forked from Ascoware/get-iplayer-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRadioFormat.m
43 lines (37 loc) · 766 Bytes
/
RadioFormat.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
42
43
//
// RadioFormat.m
// Get_iPlayer GUI
//
// Created by Thomas Willson on 9/24/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "RadioFormat.h"
@implementation RadioFormat
- (instancetype)init
{
if (!(self = [super init])) return nil;
format = @"";
return self;
}
-(instancetype)initWithFormat:(NSString *)format
{
if (self = [super init]) {
self.format = format;
}
return self;
}
+ (BOOL)supportsSecureCoding {
return YES;
}
- (void) encodeWithCoder: (NSCoder *)coder
{
[coder encodeObject: format forKey:@"format"];
}
- (instancetype) initWithCoder: (NSCoder *)coder
{
if (!(self = [super init])) return nil;
format = [coder decodeObjectForKey:@"format"];
return self;
}
@synthesize format;
@end