WZDataList
IntroductionThe WZDataList class provides an interface encapsulating a list (or array) of items that represent server metadata that is sent and received by GoCoder. Methods
addBool:- (void) addBool:(BOOL)value; ParametersDiscussionAdd a bool (which will be converted to a WZDataItem) to the internal list addDate:- (void) addDate:(nonnull NSDate *)value; ParametersDiscussionAdd a date (which will be converted to a WZDataItem) to the internal list addDouble:- (void) addDouble:(double)value; ParametersDiscussionAdd a double (which will be converted to a WZDataItem) to the internal list addFloat:- (void) addFloat:(float)value; ParametersDiscussionAdd a float (which will be converted to a WZDataItem) to the internal list addInteger:- (void) addInteger:(NSInteger)value; ParametersDiscussionAdd a integer (which will be converted to a WZDataItem) to the internal list addItem:- (void) addItem:(nonnull WZDataItem *)value; ParametersDiscussionAdd a WZDataItem to the internal list addList:- (void) addList:(nonnull WZDataList *)value; ParametersDiscussionAdd a WZDataList to the internal list addMap:ParametersDiscussionAdd a WZDataMap to the internal list addString:- (void) addString:(nonnull NSString *)value; ParametersDiscussionAdd a string (which will be converted to a WZDataItem) to the internal list dataListWithArray:+ (nullable instancetype) dataListWithArray:(nonnull NSArray<WZDataItem *> *)array; ParametersReturn ValueAn instance of WZDataList DiscussionCreates a new WZDataList and copies the items in array to it's internal list init- (nonnull instancetype) init; Return ValueAn instance of WZDataList DiscussionInitialize a new WZDataList with no elements initWithArray:- (nullable instancetype) initWithArray:(nonnull NSArray<WZDataItem *> *)array; ParametersReturn ValueAn instance of WZDataList DiscussionInitialize a new WZDataList and copy the items in array to it's internal list maximumSize+ (NSUInteger) maximumSize; Return Valuean NSUInteger expressing the maximum size (number of elements) allowed in a WZDataList DiscussionGet the maximum size (number of elements) allowed in a WZDataList Propertieselements@property (nonatomic, strong, readonly, nullable) NSMutableArray<WZDataItem *> *elements; DiscussionThe underlying NSMutableArray that stores the items in the list. |