Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
PTDiffusionResponder(PTDiffusionPrimitive) Category Reference

Extension adding support for responding to requests using primitive values. More...

#include <PTDiffusionPrimitive.h>

Instance Methods

(void) - respondWithDouble:
(BOOL) - respondWithDoubleFloatNumber:error:
(void) - respondWithLongLong:
(BOOL) - respondWithInt64Number:error:
(BOOL) - respondWithString:error:

Detailed Description

Extension adding support for responding to requests using primitive values.

Since
6.0

Method Documentation

◆ respondWithDouble:

- (void) respondWithDouble: (double) value

Dispatch a double-precision floating point (Eight-byte IEEE 754) response to a request.

Parameters
valueThe value to send in response.
Since
6.0

Extends class PTDiffusionResponder.

◆ respondWithDoubleFloatNumber:error:

- (BOOL) respondWithDoubleFloatNumber: (nullable NSNumber *) number
error: (NSError **) error 

Dispatch a double-precision floating point (Eight-byte IEEE 754) response to a request.

Parameters
numberThe value to send in response. This may be nil in order to send a 'null' response.
errorLocation to store a reason if this method returns NO to indicate failure.
Returns
YES if a response was queued for dispatch or NO if the supplied number could not be encoded using this data type.
Since
6.0

Extends class PTDiffusionResponder.

◆ respondWithInt64Number:error:

- (BOOL) respondWithInt64Number: (nullable NSNumber *) number
error: (NSError **) error 

Dispatch a 64-bit integer response to a request.

Parameters
numberThe value to send in response. This may be nil in order to send a 'null' response.
errorLocation to store a reason if this method returns NO to indicate failure.
Returns
YES if a response was queued for dispatch or NO if the supplied number could not be encoded using this data type.
Since
6.0

Extends class PTDiffusionResponder.

◆ respondWithLongLong:

- (void) respondWithLongLong: (long long) value

Dispatch a 64-bit integer response to a request.

Parameters
valueThe value to send in response.
Since
6.0

Extends class PTDiffusionResponder.

◆ respondWithString:error:

- (BOOL) respondWithString: (nullable NSString *) string
error: (NSError **) error 

Dispatch a string response to a request.

Parameters
stringThe value to send in response. This may be nil in order to send a 'null' response.
errorLocation to store a reason if this method returns NO to indicate failure.
Returns
YES if a response was queued for dispatch or NO if the supplied string could not be encoded using this data type.
Since
6.0

Extends class PTDiffusionResponder.