2 * Copyright 2017 Google
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #import <Foundation/Foundation.h>
19 typedef NS_ENUM(NSInteger, FIRMessagingMessageCode) {
20 // FIRMessaging+FIRApp.m
21 kFIRMessagingMessageCodeFIRApp000 = 1000, // I-FCM001000
22 kFIRMessagingMessageCodeFIRApp001 = 1001, // I-FCM001001
24 kFIRMessagingMessageCodeMessagingPrintLibraryVersion = 2000, // I-FCM002000
25 kFIRMessagingMessageCodeMessaging001 = 2001, // I-FCM002001
26 kFIRMessagingMessageCodeMessaging002 = 2002, // I-FCM002002 - no longer used
27 kFIRMessagingMessageCodeMessaging003 = 2003, // I-FCM002003
28 kFIRMessagingMessageCodeMessaging004 = 2004, // I-FCM002004
29 kFIRMessagingMessageCodeMessaging005 = 2005, // I-FCM002005
30 kFIRMessagingMessageCodeMessaging006 = 2006, // I-FCM002006 - no longer used
31 kFIRMessagingMessageCodeMessaging007 = 2007, // I-FCM002007 - no longer used
32 kFIRMessagingMessageCodeMessaging008 = 2008, // I-FCM002008 - no longer used
33 kFIRMessagingMessageCodeMessaging009 = 2009, // I-FCM002009
34 kFIRMessagingMessageCodeMessaging010 = 2010, // I-FCM002010
35 kFIRMessagingMessageCodeMessaging011 = 2011, // I-FCM002011
36 kFIRMessagingMessageCodeMessaging012 = 2012, // I-FCM002012
37 kFIRMessagingMessageCodeMessaging013 = 2013, // I-FCM002013
38 kFIRMessagingMessageCodeMessaging014 = 2014, // I-FCM002014
39 kFIRMessagingMessageCodeMessaging015 = 2015, // I-FCM002015
40 kFIRMessagingMessageCodeMessaging016 = 2016, // I-FCM002016 - no longer used
41 kFIRMessagingMessageCodeMessaging017 = 2017, // I-FCM002017
42 kFIRMessagingMessageCodeMessaging018 = 2018, // I-FCM002018
43 kFIRMessagingMessageCodeRemoteMessageDelegateMethodNotImplemented = 2019, // I-FCM002019
44 kFIRMessagingMessageCodeSenderIDNotSuppliedForTokenFetch = 2020, // I-FCM002020
45 kFIRMessagingMessageCodeSenderIDNotSuppliedForTokenDelete = 2021, // I-FCM002021
46 kFIRMessagingMessageCodeAPNSTokenNotAvailableDuringTokenFetch = 2022, // I-FCM002022
47 kFIRMessagingMessageCodeTokenDelegateMethodsNotImplemented = 2023, // I-FCM002023
48 kFIRMessagingMessageCodeTopicFormatIsDeprecated = 2024,
49 // FIRMessagingClient.m
50 kFIRMessagingMessageCodeClient000 = 4000, // I-FCM004000
51 kFIRMessagingMessageCodeClient001 = 4001, // I-FCM004001
52 kFIRMessagingMessageCodeClient002 = 4002, // I-FCM004002
53 kFIRMessagingMessageCodeClient003 = 4003, // I-FCM004003
54 kFIRMessagingMessageCodeClient004 = 4004, // I-FCM004004
55 kFIRMessagingMessageCodeClient005 = 4005, // I-FCM004005
56 kFIRMessagingMessageCodeClient006 = 4006, // I-FCM004006
57 kFIRMessagingMessageCodeClient007 = 4007, // I-FCM004007
58 kFIRMessagingMessageCodeClient008 = 4008, // I-FCM004008
59 kFIRMessagingMessageCodeClient009 = 4009, // I-FCM004009
60 kFIRMessagingMessageCodeClient010 = 4010, // I-FCM004010
61 kFIRMessagingMessageCodeClient011 = 4011, // I-FCM004011
62 // FIRMessagingConnection.m
63 kFIRMessagingMessageCodeConnection000 = 5000, // I-FCM005000
64 kFIRMessagingMessageCodeConnection001 = 5001, // I-FCM005001
65 kFIRMessagingMessageCodeConnection002 = 5002, // I-FCM005002
66 kFIRMessagingMessageCodeConnection003 = 5003, // I-FCM005003
67 kFIRMessagingMessageCodeConnection004 = 5004, // I-FCM005004
68 kFIRMessagingMessageCodeConnection005 = 5005, // I-FCM005005
69 kFIRMessagingMessageCodeConnection006 = 5006, // I-FCM005006
70 kFIRMessagingMessageCodeConnection007 = 5007, // I-FCM005007
71 kFIRMessagingMessageCodeConnection008 = 5008, // I-FCM005008
72 kFIRMessagingMessageCodeConnection009 = 5009, // I-FCM005009
73 kFIRMessagingMessageCodeConnection010 = 5010, // I-FCM005010
74 kFIRMessagingMessageCodeConnection011 = 5011, // I-FCM005011
75 kFIRMessagingMessageCodeConnection012 = 5012, // I-FCM005012
76 kFIRMessagingMessageCodeConnection013 = 5013, // I-FCM005013
77 kFIRMessagingMessageCodeConnection014 = 5014, // I-FCM005014
78 kFIRMessagingMessageCodeConnection015 = 5015, // I-FCM005015
79 kFIRMessagingMessageCodeConnection016 = 5016, // I-FCM005016
80 kFIRMessagingMessageCodeConnection017 = 5017, // I-FCM005017
81 kFIRMessagingMessageCodeConnection018 = 5018, // I-FCM005018
82 kFIRMessagingMessageCodeConnection019 = 5019, // I-FCM005019
83 kFIRMessagingMessageCodeConnection020 = 5020, // I-FCM005020
84 kFIRMessagingMessageCodeConnection021 = 5021, // I-FCM005021
85 kFIRMessagingMessageCodeConnection022 = 5022, // I-FCM005022
86 kFIRMessagingMessageCodeConnection023 = 5023, // I-FCM005023
87 // FIRMessagingContextManagerService.m
88 kFIRMessagingMessageCodeContextManagerService000 = 6000, // I-FCM006000
89 kFIRMessagingMessageCodeContextManagerService001 = 6001, // I-FCM006001
90 kFIRMessagingMessageCodeContextManagerService002 = 6002, // I-FCM006002
91 kFIRMessagingMessageCodeContextManagerService003 = 6003, // I-FCM006003
92 kFIRMessagingMessageCodeContextManagerService004 = 6004, // I-FCM006004
93 kFIRMessagingMessageCodeContextManagerService005 = 6005, // I-FCM006005
94 // FIRMessagingDataMessageManager.m
95 kFIRMessagingMessageCodeDataMessageManager000 = 7000, // I-FCM007000
96 kFIRMessagingMessageCodeDataMessageManager001 = 7001, // I-FCM007001
97 kFIRMessagingMessageCodeDataMessageManager002 = 7002, // I-FCM007002
98 kFIRMessagingMessageCodeDataMessageManager003 = 7003, // I-FCM007003
99 kFIRMessagingMessageCodeDataMessageManager004 = 7004, // I-FCM007004
100 kFIRMessagingMessageCodeDataMessageManager005 = 7005, // I-FCM007005
101 kFIRMessagingMessageCodeDataMessageManager006 = 7006, // I-FCM007006
102 kFIRMessagingMessageCodeDataMessageManager007 = 7007, // I-FCM007007
103 kFIRMessagingMessageCodeDataMessageManager008 = 7008, // I-FCM007008
104 kFIRMessagingMessageCodeDataMessageManager009 = 7009, // I-FCM007009
105 kFIRMessagingMessageCodeDataMessageManager010 = 7010, // I-FCM007010
106 kFIRMessagingMessageCodeDataMessageManager011 = 7011, // I-FCM007011
107 kFIRMessagingMessageCodeDataMessageManager012 = 7012, // I-FCM007012
108 // FIRMessagingPendingTopicsList.m
109 kFIRMessagingMessageCodePendingTopicsList000 = 8000, // I-FCM008000
110 // FIRMessagingPubSub.m
111 kFIRMessagingMessageCodePubSub000 = 9000, // I-FCM009000
112 kFIRMessagingMessageCodePubSub001 = 9001, // I-FCM009001
113 kFIRMessagingMessageCodePubSub002 = 9002, // I-FCM009002
114 kFIRMessagingMessageCodePubSub003 = 9003, // I-FCM009003
115 // FIRMessagingReceiver.m
116 kFIRMessagingMessageCodeReceiver000 = 10000, // I-FCM010000
117 kFIRMessagingMessageCodeReceiver001 = 10001, // I-FCM010001
118 kFIRMessagingMessageCodeReceiver002 = 10002, // I-FCM010002
119 kFIRMessagingMessageCodeReceiver003 = 10003, // I-FCM010003
120 kFIRMessagingMessageCodeReceiver004 = 10004, // I-FCM010004 - no longer used
121 kFIRMessagingMessageCodeReceiver005 = 10005, // I-FCM010005
122 // FIRMessagingRegistrar.m
123 kFIRMessagingMessageCodeRegistrar000 = 11000, // I-FCM011000
124 // FIRMessagingRemoteNotificationsProxy.m
125 kFIRMessagingMessageCodeRemoteNotificationsProxy000 = 12000, // I-FCM012000
126 kFIRMessagingMessageCodeRemoteNotificationsProxy001 = 12001, // I-FCM012001
127 kFIRMessagingMessageCodeRemoteNotificationsProxyAPNSFailed = 12002, // I-FCM012002
128 kFIRMessagingMessageCodeRemoteNotificationsProxyMethodNotAdded = 12003, // I-FCM012003
129 // FIRMessagingRmq2PersistentStore.m
130 kFIRMessagingMessageCodeRmq2PersistentStore000 = 13000, // I-FCM013000
131 kFIRMessagingMessageCodeRmq2PersistentStore001 = 13001, // I-FCM013001
132 kFIRMessagingMessageCodeRmq2PersistentStore002 = 13002, // I-FCM013002
133 kFIRMessagingMessageCodeRmq2PersistentStore003 = 13003, // I-FCM013003
134 kFIRMessagingMessageCodeRmq2PersistentStore004 = 13004, // I-FCM013004
135 kFIRMessagingMessageCodeRmq2PersistentStore005 = 13005, // I-FCM013005
136 kFIRMessagingMessageCodeRmq2PersistentStore006 = 13006, // I-FCM013006
137 kFIRMessagingMessageCodeRmq2PersistentStoreErrorCreatingDatabase = 13007, // I-FCM013007
138 kFIRMessagingMessageCodeRmq2PersistentStoreErrorOpeningDatabase = 13008, // I-FCM013008
139 kFIRMessagingMessageCodeRmq2PersistentStoreInvalidRmqDirectory = 13009, // I-FCM013009
140 kFIRMessagingMessageCodeRmq2PersistentStoreErrorCreatingTable = 13010, // I-FCM013010
141 // FIRMessagingRmqManager.m
142 kFIRMessagingMessageCodeRmqManager000 = 14000, // I-FCM014000
143 // FIRMessagingSecureSocket.m
144 kFIRMessagingMessageCodeSecureSocket000 = 15000, // I-FCM015000
145 kFIRMessagingMessageCodeSecureSocket001 = 15001, // I-FCM015001
146 kFIRMessagingMessageCodeSecureSocket002 = 15002, // I-FCM015002
147 kFIRMessagingMessageCodeSecureSocket003 = 15003, // I-FCM015003
148 kFIRMessagingMessageCodeSecureSocket004 = 15004, // I-FCM015004
149 kFIRMessagingMessageCodeSecureSocket005 = 15005, // I-FCM015005
150 kFIRMessagingMessageCodeSecureSocket006 = 15006, // I-FCM015006
151 kFIRMessagingMessageCodeSecureSocket007 = 15007, // I-FCM015007
152 kFIRMessagingMessageCodeSecureSocket008 = 15008, // I-FCM015008
153 kFIRMessagingMessageCodeSecureSocket009 = 15009, // I-FCM015009
154 kFIRMessagingMessageCodeSecureSocket010 = 15010, // I-FCM015010
155 kFIRMessagingMessageCodeSecureSocket011 = 15011, // I-FCM015011
156 kFIRMessagingMessageCodeSecureSocket012 = 15012, // I-FCM015012
157 kFIRMessagingMessageCodeSecureSocket013 = 15013, // I-FCM015013
158 kFIRMessagingMessageCodeSecureSocket014 = 15014, // I-FCM015014
159 kFIRMessagingMessageCodeSecureSocket015 = 15015, // I-FCM015015
160 kFIRMessagingMessageCodeSecureSocket016 = 15016, // I-FCM015016
161 // FIRMessagingSyncMessageManager.m
162 kFIRMessagingMessageCodeSyncMessageManager000 = 16000, // I-FCM016000
163 kFIRMessagingMessageCodeSyncMessageManager001 = 16001, // I-FCM016001
164 kFIRMessagingMessageCodeSyncMessageManager002 = 16002, // I-FCM016002
165 kFIRMessagingMessageCodeSyncMessageManager003 = 16003, // I-FCM016003
166 kFIRMessagingMessageCodeSyncMessageManager004 = 16004, // I-FCM016004
167 kFIRMessagingMessageCodeSyncMessageManager005 = 16005, // I-FCM016005
168 kFIRMessagingMessageCodeSyncMessageManager006 = 16006, // I-FCM016006
169 kFIRMessagingMessageCodeSyncMessageManager007 = 16007, // I-FCM016007
170 kFIRMessagingMessageCodeSyncMessageManager008 = 16008, // I-FCM016008
171 // FIRMessagingTopicOperation.m
172 kFIRMessagingMessageCodeTopicOption000 = 17000, // I-FCM017000
173 kFIRMessagingMessageCodeTopicOption001 = 17001, // I-FCM017001
174 kFIRMessagingMessageCodeTopicOption002 = 17002, // I-FCM017002
175 kFIRMessagingMessageCodeTopicOptionTopicEncodingFailed = 17003, // I-FCM017003
176 kFIRMessagingMessageCodeTopicOperationEmptyResponse = 17004, // I-FCM017004
177 // FIRMessagingUtilities.m
178 kFIRMessagingMessageCodeUtilities000 = 18000, // I-FCM018000
179 kFIRMessagingMessageCodeUtilities001 = 18001, // I-FCM018001
180 kFIRMessagingMessageCodeUtilities002 = 18002, // I-FCM018002