Created
October 25, 2018 11:44
-
-
Save abohomol/267e559d81e0f25becc19c286ff21acd to your computer and use it in GitHub Desktop.
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
interface CommunicationChannel { | |
fun connect(credentials: Credentials) | |
fun disconnect() | |
fun getChannelDescription(): Description | |
} | |
data class Credentials(val secret: String, val key: String) | |
data class Description( | |
val numberOfPeers: Int, | |
val pingIntervalMillis: Long, | |
val isSecured: Boolean, | |
val protocolVersion: Version | |
) | |
data class Version(val minor: Int, val major: Int) | |
object Environment { | |
const val LIVE = "..." | |
const val BETA = "..." | |
const val MOCKED = "..." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment