WOWZDataItem
IntroductionThe WOWZDataItem class provides an interface for data items that represent server metadata that's sent and received by GoCoder. Methods
boolValue- (BOOL) boolValue; Return ValueThe Boolean value of the WOWZDataItem, or 0 if the item isn't of the type WOWZDataTypeBoolean. DiscussionGets the Boolean value of the WOWZDataItem. dateValue- (nullable NSDate *)dateValue; Return ValueThe date value of the WOWZDataItem, or nil if the item isn't of the type WOWZDataTypeDate. DiscussionGets the date value of the WOWZDataItem. doubleValue- (double) doubleValue; Return ValueThe double value of the WOWZDataItem, or 0 if the item isn't of the type WOWZDataTypeDouble. DiscussionGets the double value of the WOWZDataItem. floatValue- (float) floatValue; Return ValueThe float value of the WOWZDataItem, or 0 if the item isn't of the type WOWZDataTypeFloat. DiscussionGets the float value of the WOWZDataItem. init- (nonnull instancetype) init; Return ValueAn instance of WOWZDataItem of the type WOWZDataTypeNull. DiscussionInitializes a WOWZDataItem. integerValue- (NSInteger) integerValue; Return ValueThe integer value of the WOWZDataItem, or 0 if the item isn't of the type WOWZDataTypeInteger. DiscussionGets the integer value of the WOWZDataItem. itemWithBool:+ (nonnull instancetype) itemWithBool:(BOOL)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeBool. itemWithDate:+ (nonnull instancetype) itemWithDate:(nonnull NSDate *)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeDate. itemWithDouble:+ (nonnull instancetype) itemWithDouble:(double)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeDouble. itemWithFloat:+ (nonnull instancetype) itemWithFloat:(float)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeFloat. itemWithInteger:+ (nonnull instancetype) itemWithInteger:(NSInteger)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeInteger. itemWithString:+ (nonnull instancetype) itemWithString:(nonnull NSString *)value; ParametersReturn ValueAn instance of WOWZDataItem. DiscussionCreates a WOWZDataItem whose type is WOWZDataTypeString. listValue- (nullable WOWZDataList *)listValue; Return ValueThe list value of the WOWZDataItem, or nil if the item isn't of the type WOWZDataTypeList. DiscussionGets the list value of the WOWZDataItem. mapValue- (nullable WOWZDataMap *)mapValue; Return ValueThe map value of the WOWZDataItem, or nil if the item isn't of the type WOWZDataTypeMap. DiscussionGets the map value of the WOWZDataItem. stringValue- (nullable NSString *)stringValue; Return ValueThe string value of the WOWZDataItem, or nil if the item isn't of the type WOWZDataTypeString. DiscussionGets the string value of the WOWZDataItem. Propertiestype@property (nonatomic, assign, readonly) WOWZDataType type; DiscussionThe data item's type. |