Skip to content

Commit 8aa9175

Browse files
committed
update send feedback function name to match with js lib
1 parent 15c5c2c commit 8aa9175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/io/callstats/demo/csiortc/CsioRTC.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class CsioRTC(
216216
* Submit feedback of current call
217217
*/
218218
fun sendFeedback(rating: Int, comment: String? = null) {
219-
callstats.feedback(rating, comment)
219+
callstats.sendUserFeedback(rating, comment)
220220
}
221221

222222
// Peer connection

library/src/test/java/io/callstats/CallstatsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class CallstatsTest {
158158

159159
@Test
160160
fun feedbackSendValidEvent() {
161-
callstats.feedback(3, "test", 1, 2, "remote1")
161+
callstats.sendUserFeedback(3, "test", 1, 2, "remote1")
162162
verify(sender).send(argWhere {
163163
it is FeedbackEvent
164164
&& it.feedback.comments == "test"

0 commit comments

Comments
 (0)