From 59d53b1c5da3b5eb7ea6e1b6fa950195d78680b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Mon, 17 Jun 2019 13:39:54 +0200 Subject: [PATCH] Fix funcs params --- src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt | 7 ++----- src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt b/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt index 0f780050..6714db29 100644 --- a/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt +++ b/src/main/kotlin/io/github/wulkanowy/sdk/Sdk.kt @@ -123,9 +123,6 @@ class Sdk { } var loginId = 0 - set(value) { - field = value - } var diaryId = 0 set(value) { @@ -382,9 +379,9 @@ class Sdk { } } - fun getMessageRecipients(messageId: Int, loginId: Int = 0) = scrapper.getMessageRecipients(messageId, loginId) + fun getMessageRecipients(messageId: Int) = scrapper.getMessageRecipients(messageId, loginId) - fun getMessageContent(messageId: Int, folderId: Int, read: Boolean = false, id: Int? = null, loginId: Int): Single { + fun getMessageContent(messageId: Int, folderId: Int, read: Boolean = false, id: Int? = null): Single { return when (mode) { Mode.SCRAPPER -> scrapper.getMessageContent(messageId, folderId, read, id) Mode.HYBRID, Mode.API -> mobile.changeMessageStatus(messageId, when (folderId) { diff --git a/src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt b/src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt index 1ef9378f..605c4aec 100644 --- a/src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt +++ b/src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt @@ -280,7 +280,7 @@ class SdkRemoteTest { classId = 14 } - val message = sdk.getMessageContent(1, 2, true, 1, 1).blockingGet() + val message = sdk.getMessageContent(1, 2, true, 1).blockingGet() assertEquals("Zmiana statusu wiadomoĊ›ci.", message) }