-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP jackson serialisation * Expose even less protocol items * Un-deprecate items * Build a custom track for better use with jackson * Add jackson custom json request * Clean track update builder * Update documentation
- Loading branch information
Showing
20 changed files
with
438 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
src/main/kotlin/dev/arbjerg/lavalink/client/AbstractAudioLoadResultHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
package dev.arbjerg.lavalink.client | ||
|
||
import dev.arbjerg.lavalink.protocol.v4.LoadResult | ||
import dev.arbjerg.lavalink.client.protocol.* | ||
import java.util.function.Consumer | ||
|
||
abstract class AbstractAudioLoadResultHandler : Consumer<LoadResult> { | ||
override fun accept(loadResult: LoadResult) { | ||
abstract class AbstractAudioLoadResultHandler : Consumer<LavalinkLoadResult> { | ||
override fun accept(loadResult: LavalinkLoadResult) { | ||
when (loadResult) { | ||
is LoadResult.TrackLoaded -> { | ||
is TrackLoaded -> { | ||
this.ontrackLoaded(loadResult) | ||
} | ||
|
||
is LoadResult.PlaylistLoaded -> { | ||
is PlaylistLoaded -> { | ||
this.onPlaylistLoaded(loadResult) | ||
} | ||
|
||
is LoadResult.SearchResult -> { | ||
is SearchResult -> { | ||
this.onSearchResultLoaded(loadResult) | ||
} | ||
|
||
is LoadResult.NoMatches -> { | ||
is NoMatches -> { | ||
this.noMatches() | ||
} | ||
|
||
is LoadResult.LoadFailed -> { | ||
is LoadFailed -> { | ||
this.loadFailed(loadResult) | ||
} | ||
} | ||
} | ||
|
||
abstract fun ontrackLoaded(result: LoadResult.TrackLoaded) | ||
abstract fun onPlaylistLoaded(result: LoadResult.PlaylistLoaded) | ||
abstract fun onSearchResultLoaded(result: LoadResult.SearchResult) | ||
abstract fun ontrackLoaded(result: TrackLoaded) | ||
abstract fun onPlaylistLoaded(result: PlaylistLoaded) | ||
abstract fun onSearchResultLoaded(result: SearchResult) | ||
abstract fun noMatches() | ||
abstract fun loadFailed(result: LoadResult.LoadFailed) | ||
abstract fun loadFailed(result: LoadFailed) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.