Fix funcs params

This commit is contained in:
Mikołaj Pich 2019-06-17 13:39:54 +02:00
parent 377dbe7ff7
commit 59d53b1c5d
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 3 additions and 6 deletions

View file

@ -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<String> {
fun getMessageContent(messageId: Int, folderId: Int, read: Boolean = false, id: Int? = null): Single<String> {
return when (mode) {
Mode.SCRAPPER -> scrapper.getMessageContent(messageId, folderId, read, id)
Mode.HYBRID, Mode.API -> mobile.changeMessageStatus(messageId, when (folderId) {

View file

@ -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)
}