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

Introduction

A field represents a single value in a record.

A field object is immutable.

Deprecated:
Since 6.0. Use PTDiffusionRecordV2 or PTDiffusionJSON.
Since
5.6
Inheritance diagram for PTDiffusionField:

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

NSData * data
 
PTDiffusionFieldMetadatametadata
 
id< NSObject, NSCopying > value
 

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(BOOL) - isEqualToField:
 

Method Documentation

- (BOOL) isEqualToField: (nullable PTDiffusionField *)  field

Compares the receiver to the given field.

Parameters
fieldThe field object with which to compare the receiver.
Returns
YES if the field is equal to the receiver, otherwise NO.
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
- (PTDiffusionFieldMetadata*) metadata
readnonatomiccopy

The metadata defining the transformation that was applied to the receiver's data to produce the value.

Since
5.6
- (id<NSObject, NSCopying>) value
readnonatomiccopy

The value produced by applying the metadata to the data. If metadata is nil then this will return nil.

The metadata defines the class of object returned by this method:

Since
5.6