-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP(#79-support-search): friends was fixed
- Loading branch information
Showing
9 changed files
with
112 additions
and
33 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
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
13 changes: 13 additions & 0 deletions
13
...pi-ktor/src/commonMain/kotlin/app/meetacy/sdk/engine/ktor/response/ListFriendsResponse.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.meetacy.sdk.engine.ktor.response | ||
|
||
import app.meetacy.sdk.types.serializable.user.UserSerializable | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
internal data class ListFriendsResponse ( | ||
@SerialName("data") | ||
val data: List<UserSerializable>, | ||
@SerialName("nextPagingId") | ||
val nextPagingId: String? = null | ||
) |
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
15 changes: 15 additions & 0 deletions
15
...ble/src/commonMain/kotlin/app/meetacy/sdk/types/serializable/amount/AmountSerializable.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@file:OptIn(UnsafeConstructor::class) | ||
|
||
package app.meetacy.sdk.types.serializable.amount | ||
|
||
import app.meetacy.sdk.types.amount.Amount | ||
import app.meetacy.sdk.types.annotation.UnsafeConstructor | ||
import kotlinx.serialization.Serializable | ||
import kotlin.jvm.JvmInline | ||
|
||
@Serializable | ||
@JvmInline | ||
public value class AmountSerializable(public val int: Int) | ||
|
||
public fun AmountSerializable.type(): Amount = Amount(int) | ||
public fun Amount.serializable(): AmountSerializable = AmountSerializable(int) |
16 changes: 16 additions & 0 deletions
16
...src/commonMain/kotlin/app/meetacy/sdk/types/serializable/location/LocationSerializable.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package app.meetacy.sdk.types.serializable.location | ||
|
||
import app.meetacy.sdk.types.location.Location | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
public data class LocationSerializable( | ||
@SerialName("latitude") | ||
val latitude: Double, | ||
@SerialName("longitude") | ||
val longitude: Double | ||
) | ||
|
||
public fun LocationSerializable.type(): Location = Location(latitude, longitude) | ||
public fun Location.serializable(): LocationSerializable = LocationSerializable(latitude, longitude) |
13 changes: 13 additions & 0 deletions
13
...src/commonMain/kotlin/app/meetacy/sdk/types/serializable/pagingId/PagingIdSerializable.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package app.meetacy.sdk.types.serializable.pagingId | ||
|
||
import app.meetacy.sdk.types.paging.PagingId | ||
import kotlinx.serialization.Serializable | ||
import kotlin.jvm.JvmInline | ||
|
||
@Serializable | ||
@JvmInline | ||
public value class PagingIdSerializable(public val string: String) | ||
|
||
public fun PagingIdSerializable.type(): PagingId = PagingId(string) | ||
|
||
public fun PagingId.serializable(): PagingIdSerializable = PagingIdSerializable(string) |
3 changes: 2 additions & 1 deletion
3
types/src/commonMain/kotlin/app/meetacy/sdk/types/paging/PagingId.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,6 +1,7 @@ | ||
package app.meetacy.sdk.types.paging | ||
|
||
import app.meetacy.sdk.types.annotation.UnsafeConstructor | ||
import kotlin.jvm.JvmInline | ||
|
||
@JvmInline | ||
public value class PagingId(public val string: String) | ||
public value class PagingId @UnsafeConstructor constructor(public val string: String) |