Skip to content

Commit 6a49f75

Browse files
committed
feat(webpush): Follow new appType name
Signed-off-by: sim <git@sgougeon.fr>
1 parent 3b7ee48 commit 6a49f75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/main/java/com/owncloud/android/lib/resources/notifications/RegisterAccountDeviceForWebPushOperation.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class RegisterAccountDeviceForWebPushOperation(
1919
val endpoint: String,
2020
val auth: String,
2121
val uaPublicKey: String,
22-
val apptypes: List<String>
22+
val appTypes: List<String>
2323
): RemoteOperation<Void>() {
2424

2525
override fun run(client: NextcloudClient): RemoteOperationResult<Void> {
@@ -29,7 +29,7 @@ class RegisterAccountDeviceForWebPushOperation(
2929
val body = JSONRequestBody(ENDPOINT, endpoint)
3030
body.put(AUTH, auth)
3131
body.put(UA_PUBLIC_KEY, uaPublicKey)
32-
body.put(APPTYPES, apptypes.joinToString(","))
32+
body.put(APPTYPES, appTypes.joinToString(","))
3333
post = PostMethod("${client.baseUri}$OCS_ROUTE", true, body.get())
3434

3535
val status = client.execute(post)
@@ -63,7 +63,7 @@ class RegisterAccountDeviceForWebPushOperation(
6363
private const val ENDPOINT = "endpoint"
6464
private const val AUTH = "auth"
6565
private const val UA_PUBLIC_KEY = "uaPublicKey"
66-
private const val APPTYPES = "apptypes"
66+
private const val APPTYPES = "appTypes"
6767

6868
private val TAG = RegisterAccountDeviceForWebPushOperation::class.java.getSimpleName()
6969
}

0 commit comments

Comments
 (0)