aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Messaging/FIRMessagingTopicsCommon.h
diff options
context:
space:
mode:
authorGravatar Chen Liang <chliang@google.com>2018-03-30 11:41:38 -0700
committerGravatar GitHub <noreply@github.com>2018-03-30 11:41:38 -0700
commit653aea7b50247bb0f6a7e8e1b4ab782553849f74 (patch)
tree0e2b9d8d660aee63a9a4659203e5ca9c1b692c61 /Firebase/Messaging/FIRMessagingTopicsCommon.h
parentcdd855423a79ed0191b37b7dcac2df9fb342c9a5 (diff)
Adding a new topic subscription/unsubcription with completion handler method (#1001)
* add new topic subscription/unsubscription method with handler
Diffstat (limited to 'Firebase/Messaging/FIRMessagingTopicsCommon.h')
-rw-r--r--Firebase/Messaging/FIRMessagingTopicsCommon.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/Firebase/Messaging/FIRMessagingTopicsCommon.h b/Firebase/Messaging/FIRMessagingTopicsCommon.h
index 50d8906..030b3ff 100644
--- a/Firebase/Messaging/FIRMessagingTopicsCommon.h
+++ b/Firebase/Messaging/FIRMessagingTopicsCommon.h
@@ -26,27 +26,4 @@ typedef NS_ENUM(NSInteger, FIRMessagingTopicAction) {
FIRMessagingTopicActionUnsubscribe
};
-/**
- * Represents the possible results of a topic operation.
- */
-typedef NS_ENUM(NSInteger, FIRMessagingTopicOperationResult) {
- FIRMessagingTopicOperationResultSucceeded,
- FIRMessagingTopicOperationResultError,
- FIRMessagingTopicOperationResultCancelled,
-};
-
-/**
- * Callback to invoke once the HTTP call to FIRMessaging backend for updating
- * subscription finishes.
- *
- * @param result The result of the operation. If the result is
- * FIRMessagingTopicOperationResultError, the error parameter will be
- * non-nil.
- * @param error The error which occurred while updating the subscription topic
- * on the FIRMessaging server. This will be nil in case the operation
- * was successful, or if the operation was cancelled.
- */
-typedef void(^FIRMessagingTopicOperationCompletion)
- (FIRMessagingTopicOperationResult result, NSError * _Nullable error);
-
NS_ASSUME_NONNULL_END