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
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 places where it must be used is in implementations conforming to the older messaging delegate protocols PTDiffusionMessageDelegate and PTDiffusionMessageStreamDelegate, and 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