@@ -19,6 +19,13 @@ protocol IterableInternalInAppManagerProtocol: IterableInAppManagerProtocol, InA
19
19
/// - parameter inboxSessionId: The ID of the inbox session that the message originates from.
20
20
func handleClick( clickedUrl url: URL ? , forMessage message: IterableInAppMessage , location: InAppLocation , inboxSessionId: String ? )
21
21
22
+
23
+ /// - parameter message: The message to remove.
24
+ /// - parameter location: The location from where this message was shown. `inbox` or `inApp`.
25
+ /// - parameter source: The source of deletion `inboxSwipe` or `deleteButton`.`
26
+ /// - parameter inboxSessionId: The ID of the inbox session that the message originates from.
27
+ func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource , inboxSessionId: String ? )
28
+
22
29
/// - parameter message: The message to remove.
23
30
/// - parameter location: The location from where this message was shown. `inbox` or `inApp`.
24
31
/// - parameter source: The source of deletion `inboxSwipe` or `deleteButton`.`
@@ -124,22 +131,39 @@ class InAppManager: NSObject, IterableInternalInAppManagerProtocol {
124
131
}
125
132
}
126
133
127
- func remove( message: IterableInAppMessage , location: InAppLocation , successHandler : OnSuccessHandler ? = nil , failureHandler : OnFailureHandler ? = nil ) {
134
+ func remove( message: IterableInAppMessage , location: InAppLocation ) {
128
135
ITBInfo ( )
136
+
137
+ remove ( message: message, location: location, successHandler: nil , failureHandler: nil )
138
+ }
139
+
140
+ func remove( message: IterableInAppMessage , location: InAppLocation , successHandler: OnSuccessHandler ? = nil , failureHandler: OnFailureHandler ? = nil ) {
129
141
removePrivate ( message: message, location: location, successHandler: successHandler, failureHandler: failureHandler)
130
142
}
131
143
144
+ func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource ) {
145
+ remove ( message: message, location: location, source: source, successHandler: nil , failureHandler: nil )
146
+ }
147
+
132
148
func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource , successHandler: OnSuccessHandler ? = nil , failureHandler: OnFailureHandler ? = nil ) {
133
- ITBInfo ( )
149
+
134
150
removePrivate ( message: message, location: location, source: source, successHandler: successHandler, failureHandler: failureHandler)
135
151
}
136
152
137
- func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource , inboxSessionId: String ? = nil , successHandler : OnSuccessHandler ? = nil , failureHandler : OnFailureHandler ? = nil ) {
153
+ func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource , inboxSessionId: String ? ) {
138
154
ITBInfo ( )
139
155
156
+ remove ( message: message, location: location, source: source, inboxSessionId: inboxSessionId, successHandler: nil , failureHandler: nil )
157
+ }
158
+
159
+ func remove( message: IterableInAppMessage , location: InAppLocation , source: InAppDeleteSource , inboxSessionId: String ? = nil , successHandler: OnSuccessHandler ? = nil , failureHandler: OnFailureHandler ? = nil ) {
140
160
removePrivate ( message: message, location: location, source: source, inboxSessionId: inboxSessionId, successHandler: successHandler, failureHandler: failureHandler)
141
161
}
142
162
163
+ func set( read: Bool , forMessage message: IterableInAppMessage ) {
164
+ set ( read: read, forMessage: message, successHandler: nil , failureHandler: nil )
165
+ }
166
+
143
167
func set( read: Bool , forMessage message: IterableInAppMessage , successHandler: OnSuccessHandler ? = nil , failureHandler: OnFailureHandler ? = nil ) {
144
168
updateMessage ( message, read: read) . onSuccess { [ weak self] _ in
145
169
successHandler ? ( [ : ] )
@@ -187,9 +211,13 @@ class InAppManager: NSObject, IterableInternalInAppManagerProtocol {
187
211
}
188
212
}
189
213
190
- func remove( message: IterableInAppMessage , successHandler : OnSuccessHandler ? , failureHandler : OnFailureHandler ? ) {
214
+ func remove( message: IterableInAppMessage ) {
191
215
ITBInfo ( )
192
-
216
+
217
+ remove ( message: message, successHandler: nil , failureHandler: nil )
218
+ }
219
+
220
+ func remove( message: IterableInAppMessage , successHandler: OnSuccessHandler ? , failureHandler: OnFailureHandler ? ) {
193
221
removePrivate ( message: message, location: . inApp, source: nil , successHandler: successHandler, failureHandler: failureHandler)
194
222
}
195
223
0 commit comments