// SDLCreateInteractionChoiceSet.m // #import "SDLCreateInteractionChoiceSet.h" #import "NSMutableDictionary+Store.h" #import "SDLChoice.h" #import "SDLNames.h" NS_ASSUME_NONNULL_BEGIN @implementation SDLCreateInteractionChoiceSet - (instancetype)init { if (self = [super initWithName:SDLNameCreateInteractionChoiceSet]) { } return self; } - (instancetype)initWithId:(UInt32)choiceId choiceSet:(NSArray *)choiceSet { self = [self init]; if (!self) { return nil; } self.interactionChoiceSetID = @(choiceId); self.choiceSet = [choiceSet mutableCopy]; return self; } - (void)setInteractionChoiceSetID:(NSNumber *)interactionChoiceSetID { [parameters sdl_setObject:interactionChoiceSetID forName:SDLNameInteractionChoiceSetId]; } - (NSNumber *)interactionChoiceSetID { return [parameters sdl_objectForName:SDLNameInteractionChoiceSetId]; } - (void)setChoiceSet:(NSArray *)choiceSet { [parameters sdl_setObject:choiceSet forName:SDLNameChoiceSet]; } - (NSArray *)choiceSet { return [parameters sdl_objectsForName:SDLNameChoiceSet ofClass:SDLChoice.class]; } @end NS_ASSUME_NONNULL_END