-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV2-3866 invoke binary to get server url (#656)
- Loading branch information
1 parent
ae5a801
commit 10a45cd
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
.../src/main/java/com/tabnineCommon/binary/requests/config/ChatCommunicatorAddressRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.tabnineCommon.binary.requests.config | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import com.tabnineCommon.binary.BinaryRequest | ||
|
||
enum class ChatCommunicationKind { | ||
@SerializedName("forward") | ||
Forward | ||
} | ||
class ChatCommunicatorAddressRequest(val kind: ChatCommunicationKind) : BinaryRequest<ChatCommunicatorAddressResponse> { | ||
override fun response(): Class<ChatCommunicatorAddressResponse> { | ||
return ChatCommunicatorAddressResponse::class.java | ||
} | ||
|
||
override fun serialize(): Any { | ||
return mapOf("ChatCommunicatorAddress" to this) | ||
} | ||
|
||
override fun validate(response: ChatCommunicatorAddressResponse): Boolean { | ||
return true | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...src/main/java/com/tabnineCommon/binary/requests/config/ChatCommunicatorAddressResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.tabnineCommon.binary.requests.config | ||
|
||
import com.tabnineCommon.binary.BinaryResponse | ||
|
||
data class ChatCommunicatorAddressResponse(val address: String) : BinaryResponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters