WOWZDataMap
IntroductionThe WOWZDataMap class provides an interface for a map or dictionary of items that represent server metadata that's sent and received by GoCoder. Methods
dataMapWithDictionary:+ (nonnull instancetype) dataMapWithDictionary:(nonnull NSDictionary<NSString*, WOWZDataItem*> *)dictionary; ParametersReturn ValueAn instance of WOWZDataMap. DiscussionCreates a WOWZDataMap that copies the items in the specified dictionary to its internal data map. init- (nonnull instancetype) init; Return ValueAn instance of an empty WOWZDataMap. DiscussionInitializes an empty WOWZDataMap. initWithDictionary:- (nonnull instancetype) initWithDictionary:(nonnull NSDictionary<NSString*, WOWZDataItem*> *)dictionary; ParametersReturn ValueAn instance of WOWZDataMap. DiscussionInitializes a WOWZDataMap that copies the items in the specified dictionary to its internal data map. remove:- (void) remove:(nonnull NSString *)key; ParametersDiscussionRemoves an item from the internal map. setBool:forKey:- (void) setBool:(BOOL)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a Boolean, which will be converted to a WOWZDataItem, with the specified key to the internal map. setDate:forKey:- (void) setDate:(nullable NSDate *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a date, which will be converted to a WOWZDataItem, with the specified key to the internal map. setDouble:forKey:- (void) setDouble:(double)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a double, which will be converted to a WOWZDataItem, with the specified key to the internal map. setFloat:forKey:- (void) setFloat:(float)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a float, which will be converted to a WOWZDataItem, with the specified key to the internal map. setInteger:forKey:- (void) setInteger:(NSInteger)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds an integer, which will be converted to a WOWZDataItem, with the specified key to the internal map. setItem:forKey:- (void) setItem:(nullable WOWZDataItem *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a WOWZDataItem with the specified key to the internal map. setList:forKey:- (void) setList:(nullable WOWZDataList *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a WOWZDataList with the specified key to the internal map. setMap:forKey:- (void) setMap:(nullable WOWZDataMap *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a WOWZDataMap with the specified key to the internal map. setString:forKey:- (void) setString:(nullable NSString *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdds a string, which will be converted to a WOWZDataItem, with the specified key to the internal map. Propertiesdata@property (nonatomic, strong, readonly, nullable) NSMutableDictionary<NSString*, WOWZDataItem*> *data; DiscussionThe underlying NSMutableDictionary that stores the items in the map. |