Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
GrakovNe committed Nov 23, 2024
1 parent 7cacd65 commit ce23cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ConnectionInfoResponseConverter @Inject constructor() {

fun apply(response: ConnectionInfoResponse): ConnectionInfo = ConnectionInfo(
username = response.user.username,
serverVersion = response.serverSettings.version,
buildNumber = response.serverSettings.buildNumber,
serverVersion = response.serverSettings?.version,
buildNumber = response.serverSettings?.buildNumber,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package org.grakovne.lissen.channel.audiobookshelf.common.model.connection

data class ConnectionInfoResponse(
val user: ConnectionInfoUserResponse,
val serverSettings: ConnectionInfoServerResponse,
val serverSettings: ConnectionInfoServerResponse?,
)

data class ConnectionInfoUserResponse(
Expand Down

0 comments on commit ce23cdb

Please sign in to comment.