WZDataList

Superclass:
Declared In:

Introduction

The 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:
-addDate:
-addDouble:
-addFloat:
-addInteger:
-addItem:
-addList:
-addMap:
-addString:
+dataListWithArray:
-init
-initWithArray:
+maximumSize

addBool:


- (void) addBool:(BOOL)value; 
Parameters
value

the bool value to add

Discussion

Add a bool (which will be converted to a WZDataItem) to the internal list


addDate:


- (void) addDate:(nonnull NSDate *)value; 
Parameters
value

the date value to add

Discussion

Add a date (which will be converted to a WZDataItem) to the internal list


addDouble:


- (void) addDouble:(double)value; 
Parameters
value

the double value to add

Discussion

Add a double (which will be converted to a WZDataItem) to the internal list


addFloat:


- (void) addFloat:(float)value; 
Parameters
value

the float value to add

Discussion

Add a float (which will be converted to a WZDataItem) to the internal list


addInteger:


- (void) addInteger:(NSInteger)value; 
Parameters
value

the integer value to add

Discussion

Add a integer (which will be converted to a WZDataItem) to the internal list


addItem:


- (void) addItem:(nonnull WZDataItem *)value; 
Parameters
value

the WZDataItem value to add

Discussion

Add a WZDataItem to the internal list


addList:


- (void) addList:(nonnull WZDataList *)value; 
Parameters
value

the WZDataList value to add

Discussion

Add a WZDataList to the internal list


addMap:


- (void) addMap:(nonnull WZDataMap *)value; 
Parameters
value

the WZDataMap value to add

Discussion

Add a WZDataMap to the internal list


addString:


- (void) addString:(nonnull NSString *)value; 
Parameters
value

the string value to add

Discussion

Add a string (which will be converted to a WZDataItem) to the internal list


dataListWithArray:


+ (nullable instancetype) dataListWithArray:(nonnull NSArray<WZDataItem *> *)array; 
Parameters
array

the array of WZDataItems that the caller wishes to initialize the WZDataList with.

Return Value

An instance of WZDataList

Discussion

Creates a new WZDataList and copies the items in array to it's internal list


init


- (nonnull instancetype) init; 
Return Value

An instance of WZDataList

Discussion

Initialize a new WZDataList with no elements


initWithArray:


- (nullable instancetype) initWithArray:(nonnull NSArray<WZDataItem *> *)array; 
Parameters
array

the array of WZDataItems that the caller wishes to initialize the WZDataList with.

Return Value

An instance of WZDataList

Discussion

Initialize a new WZDataList and copy the items in array to it's internal list


maximumSize


+ (NSUInteger) maximumSize; 
Return Value

an NSUInteger expressing the maximum size (number of elements) allowed in a WZDataList

Discussion

Get the maximum size (number of elements) allowed in a WZDataList


Properties

elements

elements


@property (nonatomic,
    strong,
    readonly,
    nullable) NSMutableArray<WZDataItem *> *elements; 
Discussion

The underlying NSMutableArray that stores the items in the list.