Fix funcs params
This commit is contained in:
parent
377dbe7ff7
commit
59d53b1c5d
2 changed files with 3 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue