commit 2f7304e1418260708fcdaa00d5d34aecc612dde8 Author: rdkartono Date: Tue Jul 29 09:38:23 2025 +0700 First Commit 29/07/2025 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ddbf4c --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +### IntelliJ IDEA ### +out/ +!**/src/main/**/out/ +!**/src/test/**/out/ + +### Kotlin ### +.kotlin + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache +bin/ +!**/src/main/**/bin/ +!**/src/test/**/bin/ + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..7bc07ec --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Environment-dependent path to Maven home directory +/mavenHomeManager.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..370f90a --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,15 @@ + + + + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..67c8a33 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/KotlinJavaRuntime.xml b/.idea/libraries/KotlinJavaRuntime.xml new file mode 100644 index 0000000..395b5e0 --- /dev/null +++ b/.idea/libraries/KotlinJavaRuntime.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/io_javalin_bundle.xml b/.idea/libraries/io_javalin_bundle.xml new file mode 100644 index 0000000..6b94930 --- /dev/null +++ b/.idea/libraries/io_javalin_bundle.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/java_websocket_Java_WebSocket.xml b/.idea/libraries/java_websocket_Java_WebSocket.xml new file mode 100644 index 0000000..761147c --- /dev/null +++ b/.idea/libraries/java_websocket_Java_WebSocket.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/net_java_dev_jna.xml b/.idea/libraries/net_java_dev_jna.xml new file mode 100644 index 0000000..f946aa2 --- /dev/null +++ b/.idea/libraries/net_java_dev_jna.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/slf4j_simple.xml b/.idea/libraries/slf4j_simple.xml new file mode 100644 index 0000000..db3f7df --- /dev/null +++ b/.idea/libraries/slf4j_simple.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..223c63a --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,50 @@ + + + + + + + + + Android + + + CodePlugin DevKit + + + ComplianceLintAndroid + + + CorrectnessLintAndroid + + + Java + + + Java language level migration aidsJava + + + LintAndroid + + + PerformanceLintAndroid + + + Plugin DevKit + + + UsabilityLintAndroid + + + + + Android + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7c77362 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..d843f34 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/EWS_POC.iml b/EWS_POC.iml new file mode 100644 index 0000000..ebc327c --- /dev/null +++ b/EWS_POC.iml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libs/linux-aarch64/libbass.so b/libs/linux-aarch64/libbass.so new file mode 100644 index 0000000..ab2a517 Binary files /dev/null and b/libs/linux-aarch64/libbass.so differ diff --git a/libs/linux-aarch64/libbassenc.so b/libs/linux-aarch64/libbassenc.so new file mode 100644 index 0000000..82fb7be Binary files /dev/null and b/libs/linux-aarch64/libbassenc.so differ diff --git a/libs/linux-aarch64/libbassenc_opus.so b/libs/linux-aarch64/libbassenc_opus.so new file mode 100644 index 0000000..9802f2e Binary files /dev/null and b/libs/linux-aarch64/libbassenc_opus.so differ diff --git a/libs/linux-aarch64/libbassopus.so b/libs/linux-aarch64/libbassopus.so new file mode 100644 index 0000000..6cebe42 Binary files /dev/null and b/libs/linux-aarch64/libbassopus.so differ diff --git a/libs/linux-armhf/libbass.so b/libs/linux-armhf/libbass.so new file mode 100644 index 0000000..ec90dc0 Binary files /dev/null and b/libs/linux-armhf/libbass.so differ diff --git a/libs/linux-armhf/libbassenc.so b/libs/linux-armhf/libbassenc.so new file mode 100644 index 0000000..20016ee Binary files /dev/null and b/libs/linux-armhf/libbassenc.so differ diff --git a/libs/linux-armhf/libbassenc_opus.so b/libs/linux-armhf/libbassenc_opus.so new file mode 100644 index 0000000..ae5dc15 Binary files /dev/null and b/libs/linux-armhf/libbassenc_opus.so differ diff --git a/libs/linux-armhf/libbassopus.so b/libs/linux-armhf/libbassopus.so new file mode 100644 index 0000000..c21b493 Binary files /dev/null and b/libs/linux-armhf/libbassopus.so differ diff --git a/libs/linux-x86-64/libbass.so b/libs/linux-x86-64/libbass.so new file mode 100644 index 0000000..3317ed4 Binary files /dev/null and b/libs/linux-x86-64/libbass.so differ diff --git a/libs/linux-x86-64/libbassenc.so b/libs/linux-x86-64/libbassenc.so new file mode 100644 index 0000000..bb7240b Binary files /dev/null and b/libs/linux-x86-64/libbassenc.so differ diff --git a/libs/linux-x86-64/libbassenc_opus.so b/libs/linux-x86-64/libbassenc_opus.so new file mode 100644 index 0000000..3a6bdd7 Binary files /dev/null and b/libs/linux-x86-64/libbassenc_opus.so differ diff --git a/libs/linux-x86-64/libbassopus.so b/libs/linux-x86-64/libbassopus.so new file mode 100644 index 0000000..20c3b9e Binary files /dev/null and b/libs/linux-x86-64/libbassopus.so differ diff --git a/libs/linux-x86/libbass.so b/libs/linux-x86/libbass.so new file mode 100644 index 0000000..74a204d Binary files /dev/null and b/libs/linux-x86/libbass.so differ diff --git a/libs/linux-x86/libbassenc.so b/libs/linux-x86/libbassenc.so new file mode 100644 index 0000000..874faee Binary files /dev/null and b/libs/linux-x86/libbassenc.so differ diff --git a/libs/linux-x86/libbassenc_opus.so b/libs/linux-x86/libbassenc_opus.so new file mode 100644 index 0000000..124a1a2 Binary files /dev/null and b/libs/linux-x86/libbassenc_opus.so differ diff --git a/libs/linux-x86/libbassopus.so b/libs/linux-x86/libbassopus.so new file mode 100644 index 0000000..f9906a0 Binary files /dev/null and b/libs/linux-x86/libbassopus.so differ diff --git a/libs/win32-arm64/bass.dll b/libs/win32-arm64/bass.dll new file mode 100644 index 0000000..7df046a Binary files /dev/null and b/libs/win32-arm64/bass.dll differ diff --git a/libs/win32-arm64/bassenc.dll b/libs/win32-arm64/bassenc.dll new file mode 100644 index 0000000..74be787 Binary files /dev/null and b/libs/win32-arm64/bassenc.dll differ diff --git a/libs/win32-arm64/bassenc_opus.dll b/libs/win32-arm64/bassenc_opus.dll new file mode 100644 index 0000000..f529184 Binary files /dev/null and b/libs/win32-arm64/bassenc_opus.dll differ diff --git a/libs/win32-arm64/bassopus.dll b/libs/win32-arm64/bassopus.dll new file mode 100644 index 0000000..5bcf4fd Binary files /dev/null and b/libs/win32-arm64/bassopus.dll differ diff --git a/libs/win32-x86-64/bass.dll b/libs/win32-x86-64/bass.dll new file mode 100644 index 0000000..e02c370 Binary files /dev/null and b/libs/win32-x86-64/bass.dll differ diff --git a/libs/win32-x86-64/bassenc.dll b/libs/win32-x86-64/bassenc.dll new file mode 100644 index 0000000..b8f6960 Binary files /dev/null and b/libs/win32-x86-64/bassenc.dll differ diff --git a/libs/win32-x86-64/bassenc_opus.dll b/libs/win32-x86-64/bassenc_opus.dll new file mode 100644 index 0000000..8fc0301 Binary files /dev/null and b/libs/win32-x86-64/bassenc_opus.dll differ diff --git a/libs/win32-x86-64/bassopus.dll b/libs/win32-x86-64/bassopus.dll new file mode 100644 index 0000000..9743836 Binary files /dev/null and b/libs/win32-x86-64/bassopus.dll differ diff --git a/libs/win32-x86/bass.dll b/libs/win32-x86/bass.dll new file mode 100644 index 0000000..10114b6 Binary files /dev/null and b/libs/win32-x86/bass.dll differ diff --git a/libs/win32-x86/bassenc.dll b/libs/win32-x86/bassenc.dll new file mode 100644 index 0000000..d61ca83 Binary files /dev/null and b/libs/win32-x86/bassenc.dll differ diff --git a/libs/win32-x86/bassenc_opus.dll b/libs/win32-x86/bassenc_opus.dll new file mode 100644 index 0000000..327c299 Binary files /dev/null and b/libs/win32-x86/bassenc_opus.dll differ diff --git a/libs/win32-x86/bassopus.dll b/libs/win32-x86/bassopus.dll new file mode 100644 index 0000000..6297357 Binary files /dev/null and b/libs/win32-x86/bassopus.dll differ diff --git a/src/Main.kt b/src/Main.kt new file mode 100644 index 0000000..d7151bf --- /dev/null +++ b/src/Main.kt @@ -0,0 +1,8 @@ +import zello.ZelloClient + +//TIP To Run code, press or +// click the icon in the gutter. +fun main() { + val z = ZelloClient.fromConsumerZello() + +} \ No newline at end of file diff --git a/src/zello/ZelloClient.kt b/src/zello/ZelloClient.kt new file mode 100644 index 0000000..c8c0740 --- /dev/null +++ b/src/zello/ZelloClient.kt @@ -0,0 +1,46 @@ +package zello + +import org.java_websocket.client.WebSocketClient +import org.java_websocket.handshake.ServerHandshake +import java.lang.Exception +import java.net.URI + +@Suppress("unused") +class ZelloClient(address : URI) : WebSocketClient(address) { + companion object { + fun fromConsumerZello() : ZelloClient { + return ZelloClient(URI.create("wss://zello.io/ws")) + } + + fun fromZelloWork(networkName : String) : ZelloClient{ + return ZelloClient(URI.create("wss://zellowork.io/ws/$networkName")) + } + + fun fromZelloEnterpriseServer(serverDomain: String) : ZelloClient{ + return ZelloClient(URI.create("wss://$serverDomain/ws/mesh")) + } + } + + // this key is temporary, valid only 30 days from 2025-07-29 + // if need to create, from https://developers.zello.com/keys + private val developerKey : String = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJXa002Y21ScllYSjBiMjV2T2pFLi1yYjJ2THFRbUhYV3dKY2I2azl2TDdUMEtzRWZMRjcxZm5jcktTZ0s2ZE0iLCJleHAiOjE3NTY0MzIyMTIsImF6cCI6ImRldiJ9.ANK7BIS6WVVWsQRjcZXyGWrV2RodCUQD4WXWaA6E4Dlyy8bBCMFdbiKN2D7B_x729HQULailnfRhbXF4Avfg14qONdc1XE_0iGiPUO1kfUSgdd11QylOzjxy6FTKSeZmHOh65JZq2dIWxobCcva-RPvbR8TA656upHh32xrWv9zlU0N707FTca04kze0Iq-q-uC5EL82yK10FEvOPDX88MYy71QRYi8Qh_KbSyMcYAhe2bTsiyjm51ZH9ntkRHd0HNiaijNZI6-qXkkp5Soqmzh-bTtbbgmbX4BT3Qpz_IP3epaX3jl_Aq5DHxXwCsJ9FThif9um5D0TWVGQteR0cQ" + override fun onOpen(handshakedata: ServerHandshake?) { + TODO("Not yet implemented") + + } + + override fun onMessage(message: String?) { + TODO("Not yet implemented") + } + + override fun onClose(code: Int, reason: String?, remote: Boolean) { + TODO("Not yet implemented") + } + + override fun onError(ex: Exception?) { + TODO("Not yet implemented") + } + + +} +