Skip to content

Commit

Permalink
fix(#79-support-search): added object location on list meetings map r…
Browse files Browse the repository at this point in the history
…equest
  • Loading branch information
y9Kap committed Oct 30, 2023
1 parent b1c471c commit 2a03203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package app.meetacy.sdk.engine.ktor.requests.invitations

import app.meetacy.sdk.engine.ktor.apiVersion
import app.meetacy.sdk.engine.ktor.response.CreateInvitationResponse
import app.meetacy.sdk.engine.ktor.response.StatusTrueResponse
import app.meetacy.sdk.engine.ktor.response.bodyAsSuccess
import app.meetacy.sdk.engine.ktor.token
Expand All @@ -10,6 +9,7 @@ import app.meetacy.sdk.engine.requests.CancelInvitationRequest
import app.meetacy.sdk.engine.requests.CreateInvitationRequest
import app.meetacy.sdk.engine.requests.DenyInvitationRequest
import app.meetacy.sdk.types.serializable.invitation.InvitationIdSerializable
import app.meetacy.sdk.types.serializable.invitation.InvitationSerializable
import app.meetacy.sdk.types.serializable.invitation.serializable
import app.meetacy.sdk.types.serializable.invitation.type
import app.meetacy.sdk.types.serializable.meeting.MeetingIdSerializable
Expand Down Expand Up @@ -47,7 +47,7 @@ internal class InvitationsEngine(
apiVersion(request.apiVersion)
token(request.token)
setBody(body)
}.bodyAsSuccess<CreateInvitationResponse>().result
}.bodyAsSuccess<InvitationSerializable>()
return CreateInvitationRequest.Response(response.type())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ internal class MeetingsEngine(

@Serializable
private data class ListMeetingsMapBody(
val latitude: Double,
val longitude: Double
val location: LocationSerializable
)
private fun ListMeetingsMapRequest.toBody() = ListMeetingsMapBody(location.latitude, location.longitude)
private fun ListMeetingsMapRequest.toBody() = ListMeetingsMapBody(location.serializable())

suspend fun listMeetingsMap(
request: ListMeetingsMapRequest
Expand Down

This file was deleted.

0 comments on commit 2a03203

Please sign in to comment.