blob: 65ecad24eecdf269a966159037a89b0ec4d4c7c5 (
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
|
// SDLUnsubscribeButton.m
//
#import "SDLUnsubscribeButton.h"
#import "SDLButtonName.h"
#import "SDLNames.h"
@implementation SDLUnsubscribeButton
- (instancetype)init {
if (self = [super initWithName:SDLNameUnsubscribeButton]) {
}
return self;
}
- (void)setButtonName:(SDLButtonName)buttonName {
if (buttonName != nil) {
[parameters setObject:buttonName forKey:SDLNameButtonName];
} else {
[parameters removeObjectForKey:SDLNameButtonName];
}
}
- (SDLButtonName)buttonName {
NSObject *obj = [parameters objectForKey:SDLNameButtonName];
return (SDLButtonName)obj;
}
@end
|