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

Introduction

Builds free format PTDiffusionRecordV2 values.

This type of builder may be used to generate free format recordV2 values which are not constrained by a PTDiffusionRecordV2Schema.

Every mutating method returns the builder instance allowing calls to be chained.

Since
6.0.1
Inheritance diagram for PTDiffusionRecordV2Builder:

Instance Methods

(instancetype) - addRecordWithFields:
 
(instancetype) - addFields:
 
(instancetype) - clear
 
(PTDiffusionRecordV2 *) - build
 

Method Documentation

- (instancetype) addFields: (NSArray< NSString * > *)  fields

Adds one or more field values.

If there is a current record, adds the fields to the end of the current record; otherwise, adds a new record and adds the fields to that.

Parameters
fieldsField values. This may be an empty array, in which case nothing changes.
Since
6.0.1
- (instancetype) addRecordWithFields: (NSArray< NSString * > *)  fields

Adds a new record comprising the given fields.

Parameters
fieldsField values. This may be an empty array, in which case the new record is added with no fields.
Since
6.0.1
- (PTDiffusionRecordV2 *) build

Returns an immutable record from the current state of this builder.

Since
6.0.1
- (instancetype) clear

Clears all current values from the builder allowing it to be reused to generate new data.

Since
6.0.1