Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
Content can represent the state of a topic.
It may also form the body of a message sent to or from a client. A content object is immutable.
Properties | |
PTDiffusionRecordContent * | recordContent |
Properties inherited from PTDiffusionBytes | |
NSData * | data |
Instance Methods | |
(nullable PTDiffusionRecordContent *) | - recordContentWithSchema:error: |
(BOOL) | - isEqualToContent: |
Instance Methods inherited from PTDiffusionBytes | |
(instancetype) | - initWithData: |
(BOOL) | - isEqualToBytes: |
- (BOOL) isEqualToContent: | (nullable PTDiffusionContent *) | content |
Compares the receiver to the given content.
content | The content object with which to compare the receiver. |
YES
if the data in content is equal to the contents of the receiver, otherwise NO
.- (nullable PTDiffusionRecordContent *) recordContentWithSchema: | (PTDiffusionRecordContentSchema *) | schema | |
error: | (NSError **) | error | |
Returns the data interpreted as records and transformed using associated metadata drawn from the given schema.
This method will return nil
if an error occurred.
schema | A schema to be applied to the data as it's interpreted. |
error | If an error occurs, upon return contains an NSError object that describes the problem. |
|
readnonatomiccopy |
The data interpreted as records.