BlackBerry Spark Communications Services for iOS  1.11.0
BBMJSONMessage Class Reference
Inheritance diagram for BBMJSONMessage:
BBMAuthTokenMessage BBMChatEventSendMessage BBMChatHideMessage BBMChatInviteMessage BBMChatKeyExportMessage BBMChatKeysImportMessage BBMChatLeaveMessage BBMChatMessageDeleteMessage BBMChatMessageDestroyMessage BBMChatMessageDetachMessage BBMChatMessageFileDownloadMessage BBMChatMessageReadMessage BBMChatMessageRefRemoveMessage BBMChatMessageSendMessage BBMChatMessageStateGetMessage BBMChatParticipantTimesGetMessage BBMChatStartMessage BBMChatTypingMessage BBMEndpointDeregisterMessage BBMEndpointsGetMessage BBMEndpointUpdateMessage BBMIdentitiesGetMessage BBMParticipantDemoteMessage BBMParticipantPromoteMessage BBMParticipantRemoveMessage BBMProfileKeysExportMessage BBMProfileKeysImportMessage BBMPushReceivedMessage BBMRequestListAddMessage BBMRequestListAllMessage BBMRequestListChangeMessage BBMRequestListElementsMessage BBMRequestListMatchingMessage BBMRequestListRemoveMessage BBMRequestPinMessage BBMRetryServerRequestsMessage BBMSearchMessage BBMSetupRetryMessage BBMStatsCommittedMessage BBMSyncPasscodeChangeMessage BBMSyncStartMessage BBMUserKeysImportMessage BBMWipeMessage

Instance Methods

(NSString *) - requestData
 
(NSDictionary *) - requestDict
 

Detailed Description

BBMJSONMessage is the base class for JSON Messages sent over a BBMConnection to an BBMDS API.

A subclass should override either

  • requestDict to provide a dictionary with NSJSONSerialization compatible content
  • requestString with serialized JSON data
    Since
    R3

Method Documentation

◆ requestData()

- (NSString *) requestData

The message serialized as JSON string

Returns
The JSON string of the request data.
Since
R3

◆ requestDict()

- (NSDictionary *) requestDict

All subclasses should return a NSJSONSerialization compatible dictionary

Returns
The dicionary representation of the JSON data.
Since
R3