Skip to content

Commit

Permalink
refactor: Rename Call.get to info
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 28, 2024
1 parent ddc5c23 commit e5d7383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/vonage/client/kt/Voice.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/com/vonage/client/kt/VoiceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class VoiceTest : AbstractTest() {
@Test
fun `get call`() {
mockGet(expectedUrl = callUrl, expectedResponseParams = callResponseMap)
assertEqualsSampleCall(callObj.get())
assertEqualsSampleCall(callObj.info())
}

@Test
Expand Down

0 comments on commit e5d7383

Please sign in to comment.