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

Introduction

Content can represent the state of a topic.

It may also form the body of a message received from a client. A content object is immutable.

Note
The use of this interface is being phased out in favor of specific data types. The only remaining place where it must be used is in implementations conforming to the fetch delegate protocol PTDiffusionFetchStreamDelegate. In all other cases its use should be avoided.
Since
5.6
Inheritance diagram for PTDiffusionContent:
PTDiffusionBytes

Instance Methods

(BOOL) - isEqualToContent:
 
- Instance Methods inherited from PTDiffusionBytes
(instancetype) - initWithData:
 
(BOOL) - isEqualToBytes:
 

Additional Inherited Members

- Properties inherited from PTDiffusionBytes
NSData * data
 

Method Documentation

- (BOOL) isEqualToContent: (nullable PTDiffusionContent *)  content

Compares the receiver to the given content.

Parameters
contentThe content object with which to compare the receiver.
Returns
YES if the data in content is equal to the contents of the receiver, otherwise NO.
Note
Two content objects are equal if they hold the same number of data bytes, and if the bytes at the same position in the objects are the same.
Since
5.6