From e5d738371bf12fdc6d487bdbd547c942d8f2752d Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Fri, 28 Jun 2024 11:00:05 +0100 Subject: [PATCH] refactor: Rename Call.get to info --- src/main/kotlin/com/vonage/client/kt/Voice.kt | 2 +- src/test/kotlin/com/vonage/client/kt/VoiceTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/vonage/client/kt/Voice.kt b/src/main/kotlin/com/vonage/client/kt/Voice.kt index b71d06b..3f0c3a1 100644 --- a/src/main/kotlin/com/vonage/client/kt/Voice.kt +++ b/src/main/kotlin/com/vonage/client/kt/Voice.kt @@ -14,7 +14,7 @@ class Voice(private val voiceClient: VoiceClient) { inner class ExistingCall(val callId: String) { - fun get(): CallInfo = voiceClient.getCallDetails(callId) + fun info(): CallInfo = voiceClient.getCallDetails(callId) fun hangup() = voiceClient.terminateCall(callId) diff --git a/src/test/kotlin/com/vonage/client/kt/VoiceTest.kt b/src/test/kotlin/com/vonage/client/kt/VoiceTest.kt index 1d8ae7b..7ae3318 100644 --- a/src/test/kotlin/com/vonage/client/kt/VoiceTest.kt +++ b/src/test/kotlin/com/vonage/client/kt/VoiceTest.kt @@ -166,7 +166,7 @@ class VoiceTest : AbstractTest() { @Test fun `get call`() { mockGet(expectedUrl = callUrl, expectedResponseParams = callResponseMap) - assertEqualsSampleCall(callObj.get()) + assertEqualsSampleCall(callObj.info()) } @Test