blob: a9543d8f38ed2bc206532395389c7a2eb69e59eb (
plain)
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
|
// SDLUnsubscribeButton.m
//
#import "SDLUnsubscribeButton.h"
#import "NSMutableDictionary+Store.h"
#import "SDLButtonName.h"
#import "SDLNames.h"
@implementation SDLUnsubscribeButton
- (instancetype)init {
if (self = [super initWithName:SDLNameUnsubscribeButton]) {
}
return self;
}
- (instancetype)initWithButtonName:(SDLButtonName)buttonName {
self = [self init];
if (!self) {
return nil;
}
self.buttonName = buttonName;
return self;
}
- (void)setButtonName:(SDLButtonName)buttonName {
[parameters sdl_setObject:buttonName forName:SDLNameButtonName];
}
- (SDLButtonName)buttonName {
return [parameters sdl_objectForName:SDLNameButtonName];
}
@end
|