@@ -7,17 +7,17 @@ import Alamofire
77import SwiftyJSON
88
99public extension NextcloudKit {
10- // Subscribes the current device to push notifications.
11- //
12- // Parameters:
13- // - serverUrl: The base server URL for the Nextcloud instance.
14- // - pushTokenHash: Hashed device push token, used for identification.
15- // - devicePublicKey: The public key of the device for encryption/authentication.
16- // - proxyServerUrl: The URL of the proxy push server.
17- // - account: The Nextcloud account performing the subscription.
18- // - options: Optional request configuration (headers, version, etc.).
19- // - taskHandler: Callback to monitor the `URLSessionTask`.
20- // - completion: Returns the account, device identifier, push signature, public key, response data, and NKError.
10+ /// Subscribes the current device to push notifications.
11+ ///
12+ /// Parameters:
13+ /// - serverUrl: The base server URL for the Nextcloud instance.
14+ /// - pushTokenHash: Hashed device push token, used for identification.
15+ /// - devicePublicKey: The public key of the device for encryption/authentication.
16+ /// - proxyServerUrl: The URL of the proxy push server.
17+ /// - account: The Nextcloud account performing the subscription.
18+ /// - options: Optional request configuration (headers, version, etc.).
19+ /// - taskHandler: Callback to monitor the `URLSessionTask`.
20+ /// - completion: Returns the account, device identifier, push signature, public key, response data, and NKError.
2121 func subscribingPushNotification( serverUrl: String ,
2222 pushTokenHash: String ,
2323 devicePublicKey: String ,
@@ -107,14 +107,14 @@ public extension NextcloudKit {
107107 }
108108 }
109109
110- // Unsubscribes the current device from push notifications.
111- //
112- // Parameters:
113- // - serverUrl: The base server URL of the Nextcloud instance.
114- // - account: The Nextcloud account performing the unsubscription.
115- // - options: Optional request configuration (headers, queue, etc.).
116- // - taskHandler: Callback to monitor the `URLSessionTask`.
117- // - completion: Returns the account, raw response data, and NKError.
110+ /// Unsubscribes the current device from push notifications.
111+ ///
112+ /// Parameters:
113+ /// - serverUrl: The base server URL of the Nextcloud instance.
114+ /// - account: The Nextcloud account performing the unsubscription.
115+ /// - options: Optional request configuration (headers, queue, etc.).
116+ /// - taskHandler: Callback to monitor the `URLSessionTask`.
117+ /// - completion: Returns the account, raw response data, and NKError.
118118 func unsubscribingPushNotification( serverUrl: String ,
119119 account: String ,
120120 options: NKRequestOptions = NKRequestOptions ( ) ,
@@ -172,18 +172,18 @@ public extension NextcloudKit {
172172 }
173173 }
174174
175- // Subscribes a device to the push proxy server for receiving push notifications.
176- //
177- // Parameters:
178- // - proxyServerUrl: The URL of the push proxy server.
179- // - pushToken: The token representing the push notification subscription.
180- // - deviceIdentifier: A unique identifier for the device.
181- // - signature: A signature to validate the subscription.
182- // - publicKey: The public key associated with the device.
183- // - account: The Nextcloud account performing the subscription.
184- // - options: Optional request customization.
185- // - taskHandler: Callback for tracking the underlying URLSessionTask.
186- // - completion: Returns the account, raw response data, and NKError.
175+ /// Subscribes a device to the push proxy server for receiving push notifications.
176+ ///
177+ /// Parameters:
178+ /// - proxyServerUrl: The URL of the push proxy server.
179+ /// - pushToken: The token representing the push notification subscription.
180+ /// - deviceIdentifier: A unique identifier for the device.
181+ /// - signature: A signature to validate the subscription.
182+ /// - publicKey: The public key associated with the device.
183+ /// - account: The Nextcloud account performing the subscription.
184+ /// - options: Optional request customization.
185+ /// - taskHandler: Callback for tracking the underlying URLSessionTask.
186+ /// - completion: Returns the account, raw response data, and NKError.
187187 func subscribingPushProxy( proxyServerUrl: String ,
188188 pushToken: String ,
189189 deviceIdentifier: String ,
@@ -264,17 +264,17 @@ public extension NextcloudKit {
264264 }
265265 }
266266
267- // Unsubscribes a device from the push proxy server.
268- //
269- // Parameters:
270- // - proxyServerUrl: The URL of the push proxy server.
271- // - deviceIdentifier: A unique identifier for the device.
272- // - signature: A cryptographic signature to authenticate the request.
273- // - publicKey: The public key associated with the device.
274- // - account: The Nextcloud account initiating the request.
275- // - options: Optional configuration for the request (queue, headers, version, etc.).
276- // - taskHandler: Callback triggered when the underlying URLSessionTask is created.
277- // - completion: Completion handler with account, response data, and NKError result.
267+ /// Unsubscribes a device from the push proxy server.
268+ ///
269+ /// Parameters:
270+ /// - proxyServerUrl: The URL of the push proxy server.
271+ /// - deviceIdentifier: A unique identifier for the device.
272+ /// - signature: A cryptographic signature to authenticate the request.
273+ /// - publicKey: The public key associated with the device.
274+ /// - account: The Nextcloud account initiating the request.
275+ /// - options: Optional configuration for the request (queue, headers, version, etc.).
276+ /// - taskHandler: Callback triggered when the underlying URLSessionTask is created.
277+ /// - completion: Completion handler with account, response data, and NKError result.
278278 func unsubscribingPushProxy( proxyServerUrl: String ,
279279 deviceIdentifier: String ,
280280 signature: String ,
0 commit comments