NSDictionary(RACPExtensions) Category Reference

Declared in NSDictionary+RACPExtensions.h

Overview

NSDictionary+RACPExtensions provides helper methods for interpreting the dictionary returned by the [NSData+RACPParser]

– isNumberOfRecordResponse

Checks if the RACP response details dictionary is a number of records response

- (BOOL)isNumberOfRecordResponse

Return Value

YES if the response was to a report number of records operation, otherwise NO

Declared In

NSDictionary+RACPExtensions.h

– isGeneralResponse

Checks if the RACP response details dictionary is a general response

- (BOOL)isGeneralResponse

Return Value

YES if the response was a general response, otherwise NO

Declared In

NSDictionary+RACPExtensions.h

– isSuccessfulResponseReportRecords

Checks if the RACP response was a successful report records operation

- (BOOL)isSuccessfulResponseReportRecords

Return Value

YES if the response was to a successful report records operation, otherwise NO

Declared In

NSDictionary+RACPExtensions.h

– isSuccessfulResponseDeleteRecords

Checks if the RACP response was a successful delete records operation

- (BOOL)isSuccessfulResponseDeleteRecords

Return Value

YES if the response was to a successful delete records operation, otherwise NO

Declared In

NSDictionary+RACPExtensions.h

– isSuccessfulResponseAbort

Checks if the RACP response was a successful abort operation

- (BOOL)isSuccessfulResponseAbort

Return Value

YES if the response was to a successful abort operation, otherwise NO

Declared In

NSDictionary+RACPExtensions.h

– numberOfRecords

Get the number of records from the RACP response details

- (NSNumber *)numberOfRecords

Return Value

Returns the number of stored records for the request, otherwise nil (RACP response is not a response to report number of records).

Declared In

NSDictionary+RACPExtensions.h

– responseOpCode

Get the RACP response op code

- (RACPOpCode)responseOpCode

Return Value

Only two possible op codes, report number of records response or general response. The values are defined in RACPConstants.h

Declared In

NSDictionary+RACPExtensions.h

– requestOpCode

Get the RACP request op code

- (RACPOpCode)requestOpCode

Return Value

The request op code is the operation just completed by the RACP and for which these response details are related to. The values are defined in RACPConstants.h

Discussion

If a value of 255 is returned no request op code was found

Declared In

NSDictionary+RACPExtensions.h

– responseCodeValue

Get the RACP response code value

- (RACPResponseCode)responseCodeValue

Return Value

Returns the value of the response code. The values are defined in RACPConstants.h

Discussion

If a value of 255 is returned no response code valuex was found

Declared In

NSDictionary+RACPExtensions.h