blob: c81080025b4a31d01452a055fe7b947a343e6163 (
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
|
// SDLTTSChunk.m
//
#import "SDLTTSChunk.h"
#import "SDLNames.h"
@implementation SDLTTSChunk
- (void)setText:(NSString *)text {
if (text != nil) {
[store setObject:text forKey:SDLNameText];
} else {
[store removeObjectForKey:SDLNameText];
}
}
- (NSString *)text {
return [store objectForKey:SDLNameText];
}
- (void)setType:(SDLSpeechCapabilities)type {
if (type != nil) {
[store setObject:type forKey:SDLNameType];
} else {
[store removeObjectForKey:SDLNameType];
}
}
- (SDLSpeechCapabilities)type {
NSObject *obj = [store objectForKey:SDLNameType];
return (SDLSpeechCapabilities)obj;
}
@end
|