Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unlock door api models #70

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix unlock door api models #70

wants to merge 4 commits into from

Conversation

kip-ioki
Copy link
Collaborator

@kip-ioki kip-ioki commented Dec 30, 2024

In relation with https://github.com/dbdrive/beiwagen-android/pull/7138

  • Make DesiredState an enum
  • Make doorControlAvailable non nullable

@kip-ioki kip-ioki marked this pull request as ready for review December 30, 2024 08:33
Copy link
Collaborator

@StefMa StefMa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update 🙂
Just two smallish comments.

@@ -19,5 +19,5 @@ public data class ApiVehicle(
@SerialName(value = "storage_spaces") val storageSpaces: Int,
val autonomous: Boolean,
@SerialName(value = "supports_door_open_requests") val supportsDoorOpenRequests: Boolean?,
Copy link
Collaborator

@StefMa StefMa Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be non-null, right? 🤔

And did you asked about the supports_door_open_requests already? 🤔
Right now it is not delivered in case it is non-autonomous.
However, it should be set to false in that case.

@@ -280,7 +280,7 @@ fun createApiVehicle(
storageSpace: Int = 0,
autonomous: Boolean = false,
supportsDoorOpenRequests: Boolean? = null,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, not null 🤓

@StefMa StefMa requested a review from Copilot January 3, 2025 13:14

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

Files not reviewed (5)
  • library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiUnlockDoorRequest.kt: Language not supported
  • library/src/commonMain/kotlin/com/ioki/passenger/api/models/ApiVehicle.kt: Language not supported
  • library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiRideResponseTest.kt: Language not supported
  • library/src/commonTest/kotlin/com/ioki/passenger/api/models/ApiUnlockDoorRequestTest.kt: Language not supported
  • library/src/commonTest/kotlin/com/ioki/passenger/api/models/ModelsHelper.kt: Language not supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants