WZDataMap
IntroductionThe WZDataMap class provides an interface encapsulating a map (or dictionary) of items that represent server metadata that is sent and received by GoCoder. Methods
dataMapWithDictionary:+ (nonnull instancetype) dataMapWithDictionary:(nonnull NSDictionary<NSString*, WZDataItem*> *)dictionary; ParametersReturn ValueAn instance of WZDataMap DiscussionCreates a new WZDataMap and copies the items in dictionary to it's internal data map init- (nonnull instancetype) init; Return ValueAn instance of WZDataMap DiscussionInitialize a new WZDataMap with no items initWithDictionary:- (nonnull instancetype) initWithDictionary:(nonnull NSDictionary<NSString*, WZDataItem*> *)dictionary; ParametersReturn ValueAn instance of WZDataMap DiscussionInitialize a new WZDataMap and copies the items in dictionary to it's internal data map remove:- (void) remove:(nonnull NSString *)key; ParametersDiscussionRemove an item from the internal map setBool:forKey:- (void) setBool:(BOOL)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a bool (which will be converted to a WZDataItem) with given key to the internal map setDate:forKey:- (void) setDate:(nullable NSDate *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a date (which will be converted to a WZDataItem) with given key to the internal map setDouble:forKey:- (void) setDouble:(double)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a double (which will be converted to a WZDataItem) with given key to the internal map setFloat:forKey:- (void) setFloat:(float)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a float (which will be converted to a WZDataItem) with given key to the internal map setInteger:forKey:- (void) setInteger:(NSInteger)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a integer (which will be converted to a WZDataItem) with given key to the internal map setItem:forKey:- (void) setItem:(nullable WZDataItem *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a WZDataItem with given key to the internal map setList:forKey:- (void) setList:(nullable WZDataList *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a WZDataList with given key to the internal map setMap:forKey:ParametersDiscussionAdd a WZDataMap with given key to the internal map setString:forKey:- (void) setString:(nullable NSString *)value forKey:(nonnull NSString *)key; ParametersDiscussionAdd a string (which will be converted to a WZDataItem) with given key to the internal map Propertiesdata@property (nonatomic, strong, readonly, nullable) NSMutableDictionary<NSString*, WZDataItem*> *data; DiscussionThe underlying NSMutableDictionary that stores the items in the map. |