Diffusion Apple API  5.9.24
Unified Client Library for iOS, OS X and tvOS
 All Classes Functions Variables Properties Pages
Properties | Instance Methods | List of all members
PTDiffusionRecordContent Class Reference

Introduction

Record content is a collection of records.

A record content object is immutable.

See Also
PTDiffusionContent
PTDiffusionRecordContentSchema
Since
5.6
Inheritance diagram for PTDiffusionRecordContent:

Properties

NSData * data
 
PTDiffusionRecordContentSchemaschema
 
NSArray< PTDiffusionRecord * > * records
 

Instance Methods

(NSArray< PTDiffusionRecord * > *) - recordsWithName:
 
(nullable PTDiffusionRecord *) - recordWithName:
 
(BOOL) - isEqualToRecordContent:
 

Method Documentation

- (BOOL) isEqualToRecordContent: (nullable PTDiffusionRecordContent *)  recordContent

Compares the receiver to the given record content.

Parameters
recordContentThe record content object with which to compare the receiver.
Returns
YES if the record content is equal to the receiver, otherwise NO.
Since
5.6
- (NSArray<PTDiffusionRecord *> *) recordsWithName: (NSString *)  name

Returns records transformed by a PTDiffusionRecordMetadata object with the given name.

If no records were found with the given name or schema is nil then this method will return an empty array.

Parameters
nameThe name to find when examining metadata to select records.
Exceptions
NSInvalidArgumentExceptionIf the given name is nil.
Since
5.6
- (nullable PTDiffusionRecord *) recordWithName: (NSString *)  name

Returns the first record object transformed by a PTDiffusionRecordMetadata object with the given name.

If no records were found with the given name or schema is nil then this method will return nil.

Parameters
nameThe name to find when examining metadata to select record.
Exceptions
NSInvalidArgumentExceptionIf the given name is nil.
Since
5.6

Property Documentation

- (NSData*) data
readnonatomiccopy

The data defining the receiver. This returns the raw underlying bytes. It has not been transformed in any way.

Since
5.6
- (NSArray<PTDiffusionRecord *>*) records
readnonatomicassign

Returns all records encapsulated by the receiver. This array may be empty.

Since
5.6
- (PTDiffusionRecordContentSchema*) schema
readnonatomiccopy

The schema defining the transformation applied to the receiver's data to produce the records.

Since
5.6