Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message type support for: publish, signal, history and subscribe #444

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
48 changes: 36 additions & 12 deletions Framework/PubNub Framework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,16 @@
A5A7B0332349330F0060113B /* PNBaseMessageActionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = A5A7AFF82349330F0060113B /* PNBaseMessageActionRequest.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5A7B0342349330F0060113B /* PNBaseMessageActionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = A5A7AFF82349330F0060113B /* PNBaseMessageActionRequest.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5A7B0362349330F0060113B /* PNBaseMessageActionRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = A5A7AFF82349330F0060113B /* PNBaseMessageActionRequest.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35732959D1E80038FD6F /* PNSpaceId.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CE35712959D1E80038FD6F /* PNSpaceId.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35742959D1E80038FD6F /* PNSpaceId.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CE35712959D1E80038FD6F /* PNSpaceId.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35752959D1E80038FD6F /* PNSpaceId.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CE35712959D1E80038FD6F /* PNSpaceId.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35762959D1E80038FD6F /* PNSpaceId.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CE35712959D1E80038FD6F /* PNSpaceId.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35772959D1E80038FD6F /* PNSpaceId.h in Headers */ = {isa = PBXBuildFile; fileRef = A5CE35712959D1E80038FD6F /* PNSpaceId.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5CE35782959D1E80038FD6F /* PNSpaceId.m in Sources */ = {isa = PBXBuildFile; fileRef = A5CE35722959D1E80038FD6F /* PNSpaceId.m */; };
A5CE35792959D1E80038FD6F /* PNSpaceId.m in Sources */ = {isa = PBXBuildFile; fileRef = A5CE35722959D1E80038FD6F /* PNSpaceId.m */; };
A5CE357A2959D1E80038FD6F /* PNSpaceId.m in Sources */ = {isa = PBXBuildFile; fileRef = A5CE35722959D1E80038FD6F /* PNSpaceId.m */; };
A5CE357B2959D1E80038FD6F /* PNSpaceId.m in Sources */ = {isa = PBXBuildFile; fileRef = A5CE35722959D1E80038FD6F /* PNSpaceId.m */; };
A5CE357C2959D1E80038FD6F /* PNSpaceId.m in Sources */ = {isa = PBXBuildFile; fileRef = A5CE35722959D1E80038FD6F /* PNSpaceId.m */; };
A5FADC342490270E001D7704 /* PubNub+Files.h in Headers */ = {isa = PBXBuildFile; fileRef = A5FADC322490270E001D7704 /* PubNub+Files.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5FADC352490270E001D7704 /* PubNub+Files.h in Headers */ = {isa = PBXBuildFile; fileRef = A5FADC322490270E001D7704 /* PubNub+Files.h */; settings = {ATTRIBUTES = (Public, ); }; };
A5FADC362490270E001D7704 /* PubNub+Files.h in Headers */ = {isa = PBXBuildFile; fileRef = A5FADC322490270E001D7704 /* PubNub+Files.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -3043,6 +3053,8 @@
A5A7AFF62349330E0060113B /* PNRemoveMessageActionRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNRemoveMessageActionRequest.m; path = Message/PNRemoveMessageActionRequest.m; sourceTree = "<group>"; };
A5A7AFF72349330F0060113B /* PNRemoveMessageActionRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PNRemoveMessageActionRequest.h; path = Message/PNRemoveMessageActionRequest.h; sourceTree = "<group>"; };
A5A7AFF82349330F0060113B /* PNBaseMessageActionRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PNBaseMessageActionRequest.h; path = Message/PNBaseMessageActionRequest.h; sourceTree = "<group>"; };
A5CE35712959D1E80038FD6F /* PNSpaceId.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PNSpaceId.h; sourceTree = "<group>"; };
A5CE35722959D1E80038FD6F /* PNSpaceId.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PNSpaceId.m; sourceTree = "<group>"; };
A5FADC322490270E001D7704 /* PubNub+Files.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PubNub+Files.h"; sourceTree = "<group>"; };
A5FADC332490270E001D7704 /* PubNub+Files.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "PubNub+Files.m"; sourceTree = "<group>"; };
A5FADC3F2490292A001D7704 /* PNSendFileRequest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PNSendFileRequest.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3780,30 +3792,32 @@
A55A86A322FD817E002D0A72 /* Models */ = {
isa = PBXGroup;
children = (
A55BCD24231D27F00019DB68 /* PNMessageAction+Private.h */,
A55BCD14231D26110019DB68 /* PNMessageAction.h */,
A55BCD15231D26110019DB68 /* PNMessageAction.m */,
A58975E023005CFB0093BD9A /* PNMembership+Private.h */,
A58975C023005BD80093BD9A /* PNMembership.h */,
A58975C123005BD80093BD9A /* PNMembership.m */,
A568655F2300622C0014E17C /* PNChannelMember+Private.h */,
A58975D023005BE60093BD9A /* PNChannelMember.h */,
A58975D123005BE60093BD9A /* PNChannelMember.m */,
A55A86A522FD817E002D0A72 /* PNChannelMetadata+Private.h */,
A55A86A622FD817E002D0A72 /* PNChannelMetadata.h */,
A55A86A922FD817E002D0A72 /* PNChannelMetadata.m */,
A568655F2300622C0014E17C /* PNChannelMember+Private.h */,
A58975D023005BE60093BD9A /* PNChannelMember.h */,
A58975D123005BE60093BD9A /* PNChannelMember.m */,
A55BCD24231D27F00019DB68 /* PNMessageAction+Private.h */,
A55BCD14231D26110019DB68 /* PNMessageAction.h */,
A55BCD15231D26110019DB68 /* PNMessageAction.m */,
A55A86A722FD817E002D0A72 /* PNUUIDMetadata+Private.h */,
A55A86A822FD817E002D0A72 /* PNUUIDMetadata.h */,
A55A86A422FD817E002D0A72 /* PNUUIDMetadata.m */,
A5CE35712959D1E80038FD6F /* PNSpaceId.h */,
A5CE35722959D1E80038FD6F /* PNSpaceId.m */,
A58975E023005CFB0093BD9A /* PNMembership+Private.h */,
A58975C023005BD80093BD9A /* PNMembership.h */,
A58975C123005BD80093BD9A /* PNMembership.m */,
79CFA2CF26DE1CD100D206D4 /* PNPAMToken+Private.h */,
79CFA2B726DE1C4900D206D4 /* PNPAMToken.h */,
79CFA2B826DE1C4900D206D4 /* PNPAMToken.m */,
A504E14B24AA9515006DCF5B /* PNFile+Private.h */,
A504E13F24AA94C8006DCF5B /* PNFile.h */,
A504E14024AA94C8006DCF5B /* PNFile.m */,
A55DAF0624B1FEC800766EE9 /* PNXML+Private.h */,
A55DAEFA24B1FE9E00766EE9 /* PNXML.h */,
A55DAEFB24B1FE9E00766EE9 /* PNXML.m */,
A504E14B24AA9515006DCF5B /* PNFile+Private.h */,
A504E13F24AA94C8006DCF5B /* PNFile.h */,
A504E14024AA94C8006DCF5B /* PNFile.m */,
);
path = Models;
sourceTree = "<group>";
Expand Down Expand Up @@ -4216,6 +4230,7 @@
A5A4519E246DE792008ECC74 /* PNRemoveMembershipsRequest.h in Headers */,
A504E11C24AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.h in Headers */,
A55A86B822FD817E002D0A72 /* PNChannelMetadata.h in Headers */,
A5CE35732959D1E80038FD6F /* PNSpaceId.h in Headers */,
7915827E1BD709C60084FC70 /* PNURLBuilder.h in Headers */,
A55A86BF22FD817E002D0A72 /* PNUUIDMetadata+Private.h in Headers */,
7915827C1BD709C60084FC70 /* PNTimeParser.h in Headers */,
Expand Down Expand Up @@ -4491,6 +4506,7 @@
A5A451A0246DE792008ECC74 /* PNRemoveMembershipsRequest.h in Headers */,
A504E11E24AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.h in Headers */,
A55A86BA22FD817E002D0A72 /* PNChannelMetadata.h in Headers */,
A5CE35752959D1E80038FD6F /* PNSpaceId.h in Headers */,
791583191BD709D10084FC70 /* PNTimeResult.h in Headers */,
A55A86C122FD817E002D0A72 /* PNUUIDMetadata+Private.h in Headers */,
79A0D8C01DC22FD60039A264 /* PNPresenceChannelHereNowAPICallBuilder.h in Headers */,
Expand Down Expand Up @@ -4633,6 +4649,7 @@
7988423D1C18F128003E8948 /* PNAPNSEnabledChannelsResult.h in Headers */,
A57A3027238D59B500DE8C68 /* PNRemovePushNotificationsRequest.h in Headers */,
A5A7AFD2234932F30060113B /* PNFetchMessagesActionsParser.h in Headers */,
A5CE35772959D1E80038FD6F /* PNSpaceId.h in Headers */,
A55A861522FD80B9002D0A72 /* PNRemoveUUIDMetadataAPICallBuilder.h in Headers */,
79A0D8871DC22F520039A264 /* PNAPNSAPICallBuilder.h in Headers */,
A5A451C1246DE8C3008ECC74 /* PNRemoveChannelMembersRequest.h in Headers */,
Expand Down Expand Up @@ -5040,6 +5057,7 @@
A5A4519F246DE792008ECC74 /* PNRemoveMembershipsRequest.h in Headers */,
A504E11D24AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.h in Headers */,
A55A86B922FD817E002D0A72 /* PNChannelMetadata.h in Headers */,
A5CE35742959D1E80038FD6F /* PNSpaceId.h in Headers */,
79A8BC861C58F93900015BDE /* PNTimeResult.h in Headers */,
A55A86C022FD817E002D0A72 /* PNUUIDMetadata+Private.h in Headers */,
79A0D8BF1DC22FD60039A264 /* PNPresenceChannelHereNowAPICallBuilder.h in Headers */,
Expand Down Expand Up @@ -5315,6 +5333,7 @@
A5A451A1246DE792008ECC74 /* PNRemoveMembershipsRequest.h in Headers */,
A504E11F24AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.h in Headers */,
A55A86BB22FD817E002D0A72 /* PNChannelMetadata.h in Headers */,
A5CE35762959D1E80038FD6F /* PNSpaceId.h in Headers */,
79CBB1631BD03DE4001FC34D /* PNErrorCodes.h in Headers */,
A55A86C222FD817E002D0A72 /* PNUUIDMetadata+Private.h in Headers */,
79A0D8C11DC22FD60039A264 /* PNPresenceChannelHereNowAPICallBuilder.h in Headers */,
Expand Down Expand Up @@ -5921,6 +5940,7 @@
7925DB9C1D3FFCAC00857C0D /* PNLLogFileInformation.m in Sources */,
7915822C1BD709C60084FC70 /* PNClientInformation.m in Sources */,
793248651D874D9F00FBDF36 /* PNPublishSequence.m in Sources */,
A5CE35782959D1E80038FD6F /* PNSpaceId.m in Sources */,
A504E12124AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.m in Sources */,
791582231BD709C60084FC70 /* PNRequestParameters.m in Sources */,
791582291BD709C60084FC70 /* PNSubscriberResults.m in Sources */,
Expand Down Expand Up @@ -6151,6 +6171,7 @@
791582C01BD709D10084FC70 /* PNPresenceWhereNowResult.m in Sources */,
791582F51BD709D10084FC70 /* PNPresenceHereNowParser.m in Sources */,
791582DA1BD709D10084FC70 /* PNMessagePublishParser.m in Sources */,
A5CE357A2959D1E80038FD6F /* PNSpaceId.m in Sources */,
A504E12324AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.m in Sources */,
791582CA1BD709D10084FC70 /* PNAcknowledgmentStatus.m in Sources */,
79A0D9871DC2315D0039A264 /* PNTimeAPICallBuilder.m in Sources */,
Expand Down Expand Up @@ -6381,6 +6402,7 @@
7988426C1C18F1E3003E8948 /* PNPresenceWhereNowResult.m in Sources */,
798842BC1C18F2EA003E8948 /* PNPresenceHereNowParser.m in Sources */,
798842BB1C18F2EA003E8948 /* PNMessagePublishParser.m in Sources */,
A5CE357C2959D1E80038FD6F /* PNSpaceId.m in Sources */,
A504E12524AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.m in Sources */,
798842601C18F1E3003E8948 /* PNAcknowledgmentStatus.m in Sources */,
79A0D98B1DC2315F0039A264 /* PNTimeAPICallBuilder.m in Sources */,
Expand Down Expand Up @@ -6611,6 +6633,7 @@
79A8BC2C1C58F93900015BDE /* PNPresenceWhereNowResult.m in Sources */,
79A8BC621C58F93900015BDE /* PNPresenceHereNowParser.m in Sources */,
79A8BC461C58F93900015BDE /* PNMessagePublishParser.m in Sources */,
A5CE35792959D1E80038FD6F /* PNSpaceId.m in Sources */,
A504E12224AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.m in Sources */,
79A8BC361C58F93900015BDE /* PNAcknowledgmentStatus.m in Sources */,
79A0D9861DC2315D0039A264 /* PNTimeAPICallBuilder.m in Sources */,
Expand Down Expand Up @@ -6841,6 +6864,7 @@
79CBB17B1BD03DE4001FC34D /* PNPresenceWhereNowParser.m in Sources */,
79CBB1791BD03DE4001FC34D /* PNPresenceHereNowParser.m in Sources */,
79CBB1771BD03DE4001FC34D /* PNMessagePublishParser.m in Sources */,
A5CE357B2959D1E80038FD6F /* PNSpaceId.m in Sources */,
A504E12424AA8FBF006DCF5B /* PNGenerateFileUploadURLStatus.m in Sources */,
79CBB11D1BD03DE4001FC34D /* PNAcknowledgmentStatus.m in Sources */,
79A0D9881DC2315E0039A264 /* PNTimeAPICallBuilder.m in Sources */,
Expand Down
3 changes: 3 additions & 0 deletions Framework/PubNub/PubNub.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ FOUNDATION_EXPORT const unsigned char PubNubVersionString[];
#import "PNResult.h"
#import "PNStatus.h"

// Models
#import "PNSpaceId.h"

// API
#import "PubNub+Core.h"
#import "PubNub+MessageActions.h"
Expand Down
3 changes: 2 additions & 1 deletion PubNub/Core/PubNub+Core.m
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ - (void)processOperation:(PNOperationType)operationType

- (void)processOperation:(PNOperationType)operationType
withParameters:(PNRequestParameters *)parameters
data:(NSData *)data completionBlock:(id)block {
data:(NSData *)data
completionBlock:(id)block {

[self addAuthParameter:parameters];

Expand Down
1 change: 1 addition & 0 deletions PubNub/Core/PubNub+Files.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#import "PNDeleteFileRequest.h"
#import "PNListFilesRequest.h"
#import "PNSendFileRequest.h"
#import "PNSpaceId.h"
#import "PNFile.h"

#import "PNDownloadFileResult.h"
Expand Down
6 changes: 5 additions & 1 deletion PubNub/Core/PubNub+Files.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ - (void)sendFileRequestUsingBuilderParameters:(NSDictionary *)parameters {
request.cipherKey = cipherKey ?: self.configuration.cipherKey;
request.fileMessageMetadata = parameters[NSStringFromSelector(@selector(fileMessageMetadata))];
request.arbitraryQueryParameters = parameters[@"queryParam"];
request.type = parameters[NSStringFromSelector(@selector(type))];
request.spaceId = parameters[NSStringFromSelector(@selector(spaceId))];
request.message = parameters[NSStringFromSelector(@selector(message))];

if (store) {
Expand Down Expand Up @@ -506,7 +508,9 @@ - (void)handleUploadFileSuccessWithFileIdentifier:(NSString *)fileIdentifier

request.arbitraryQueryParameters = sendFileRequest.arbitraryQueryParameters;
request.metadata = sendFileRequest.fileMessageMetadata;
request.type = sendFileRequest.type;
request.store = sendFileRequest.fileMessageStore;
request.spaceId = sendFileRequest.spaceId;
request.message = sendFileRequest.message;

if (request.store) {
Expand All @@ -516,7 +520,7 @@ - (void)handleUploadFileSuccessWithFileIdentifier:(NSString *)fileIdentifier
__block NSUInteger publishAttemptsCount = 1;

[self publishFileMessageWithRequest:request completion:^(PNPublishStatus *status) {
if (!status.isError || publishAttemptsCount >= fileMessagePublishRetryLimit) {
if (!status.isError || status.statusCode == 400 || publishAttemptsCount >= fileMessagePublishRetryLimit) {
PNSendFileStatus *sendFileStatus = nil;
NSMutableDictionary *serviceData = [@{
@"id": fileIdentifier,
Expand Down
29 changes: 29 additions & 0 deletions PubNub/Core/PubNub+History.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ @interface PubNub (HistoryProtected)
* not.
* @param includeMessageType Whether event type should be included in response or not.
* By default set to: \b YES.
* @param includeType Whether user-provided event type should be included in response or not.
* By default set to: \b YES.
* @param includeSpaceId Whether identifier of space to which event has been sent should be included or not.
* @param includeUUID Whether event publisher UUID should be included in response or not.
* By default set to: \b YES.
* @param shouldIncludeMessageActions Whether event actions should be included in response or not.
Expand All @@ -61,6 +64,8 @@ - (void)historyForChannels:(BOOL)multipleChannels
reverse:(nullable NSNumber *)shouldReverseOrder
includeTimeToken:(nullable NSNumber *)shouldIncludeTimeToken
includeMessageType:(nullable NSNumber *)includeMessageType
includeType:(nullable NSNumber *)includeType
includeSpaceId:(nullable NSNumber *)includeSpaceId
includeUUID:(nullable NSNumber *)includeUUID
includeMessageActions:(nullable NSNumber *)shouldIncludeMessageActions
includeMetadata:(nullable NSNumber *)shouldIncludeMetadata
Expand Down Expand Up @@ -153,6 +158,8 @@ @implementation PubNub (History)
NSNumber *reverse = parameters[NSStringFromSelector(@selector(reverse))];
NSNumber *includeTimeToken = parameters[NSStringFromSelector(@selector(includeTimeToken))];
NSNumber *includeMessageType = parameters[NSStringFromSelector(@selector(includeMessageType))];
NSNumber *includeType = parameters[NSStringFromSelector(@selector(includeType))];
NSNumber *includeSpaceId = parameters[NSStringFromSelector(@selector(includeSpaceId))];
NSNumber *includeUUID = parameters[NSStringFromSelector(@selector(includeUUID))];
NSNumber *includeMetadata = parameters[NSStringFromSelector(@selector(includeMetadata))];
NSNumber *includeActions = parameters[NSStringFromSelector(@selector(includeMessageActions))];
Expand All @@ -167,6 +174,8 @@ @implementation PubNub (History)
reverse:reverse
includeTimeToken:includeTimeToken
includeMessageType:includeMessageType
includeType:includeType
includeSpaceId:includeSpaceId
includeUUID:includeUUID
includeMessageActions:includeActions
includeMetadata:includeMetadata
Expand Down Expand Up @@ -316,6 +325,8 @@ - (void)historyForChannel:(NSString *)channel
reverse:@NO
includeTimeToken:@NO
includeMessageType:@YES
includeType:@YES
includeSpaceId:@NO
includeUUID:@YES
includeMessageActions:@(shouldIncludeMessageActions)
includeMetadata:@(shouldIncludeMetadata)
Expand Down Expand Up @@ -403,6 +414,8 @@ - (void)historyForChannel:(NSString *)channel
reverse:@(shouldReverseOrder)
includeTimeToken:@(shouldIncludeTimeToken)
includeMessageType:@YES
includeType:@YES
includeSpaceId:@NO
includeUUID:@YES
includeMessageActions:nil
includeMetadata:nil
Expand All @@ -418,6 +431,8 @@ - (void)historyForChannels:(BOOL)multipleChannels
reverse:(NSNumber *)shouldReverseOrder
includeTimeToken:(NSNumber *)shouldIncludeTimeToken
includeMessageType:(NSNumber *)includeMessageType
includeType:(NSNumber *)includeType
includeSpaceId:(NSNumber *)includeSpaceId
includeUUID:(NSNumber *)includeUUID
includeMessageActions:(NSNumber *)shouldIncludeMessageActions
includeMetadata:(NSNumber *)shouldIncludeMetadata
Expand All @@ -441,6 +456,14 @@ - (void)historyForChannels:(BOOL)multipleChannels
includeMessageType = @YES;
}

if (!includeType) {
includeType = @YES;
}

if (!includeSpaceId) {
includeSpaceId = @NO;
}

if (!includeUUID) {
includeUUID = @YES;
}
Expand Down Expand Up @@ -508,6 +531,10 @@ - (void)historyForChannels:(BOOL)multipleChannels
if (operation == PNHistoryWithActionsOperation || multipleChannels) {
[parameters addQueryParameter:(includeMessageType.boolValue ? @"true" : @"false")
forFieldName:@"include_message_type"];
[parameters addQueryParameter:(includeType.boolValue ? @"true" : @"false")
forFieldName:@"include_type"];
[parameters addQueryParameter:(includeSpaceId.boolValue ? @"true" : @"false")
forFieldName:@"include_space_id"];
[parameters addQueryParameter:(includeUUID.boolValue ? @"true" : @"false")
forFieldName:@"include_uuid"];
}
Expand Down Expand Up @@ -569,6 +596,8 @@ - (void)historyForChannels:(BOOL)multipleChannels
reverse:shouldReverseOrder
includeTimeToken:shouldIncludeTimeToken
includeMessageType:includeMessageType
includeType:includeType
includeSpaceId:includeSpaceId
includeUUID:includeUUID
includeMessageActions:shouldIncludeMessageActions
includeMetadata:shouldIncludeMetadata
Expand Down
2 changes: 2 additions & 0 deletions PubNub/Core/PubNub+Publish.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#import "PNPublishFileMessageRequest.h"
#import "PNPublishRequest.h"

#import "PNSpaceId.h"

#import "PNPublishFileMessageAPICallBuilder.h"
#import "PNPublishSizeAPICallBuilder.h"
#import "PNPublishAPICallBuilder.h"
Expand Down
Loading