Skip to content

Commit

Permalink
update documentation and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Данила Беляков authored and Данила Беляков committed Aug 2, 2024
1 parent 98d5298 commit feec242
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ fun MessageResponse.Builder.audioPlayer(body: AudioPlayer.Builder.() -> Unit) {
}

/**
* [Source](https://yandex.ru/dev/dialogs/alice/doc/ru/request-audioplayer)
* [Source 1](https://yandex.ru/dev/dialogs/alice/doc/ru/request-audioplayer)
* [Source 2](https://yandex.ru/dev/dialogs/alice/doc/ru/response-audio-player)
* */
@Serializable
data class AudioPlayer internal constructor(
Expand All @@ -20,7 +21,7 @@ data class AudioPlayer internal constructor(
class Builder {
var action = AudioPlayerAction.Play

lateinit var url: String
var url: String? = null
var token = UUID.randomUUID().toString()
var offsetMs = 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlinx.serialization.Serializable

@Serializable
data class AudioPlayerStream(
val url: String,
val url: String?,
@SerialName("offset_ms")
val offsetMs: Int = 0,
val token: String
Expand Down
Empty file added documentation/Audio_Player.md
Empty file.
2 changes: 2 additions & 0 deletions examples/src/main/kotlin/com/github/examples/AudioPlayer.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package com.github.examples

0 comments on commit feec242

Please sign in to comment.