-
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.
- Loading branch information
Showing
8 changed files
with
48 additions
and
14 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
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
api/src/commonMain/kotlin/app/meetacy/sdk/engine/requests/GetUserByUsernameRequest.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.requests | ||
|
||
import app.meetacy.sdk.types.auth.Token | ||
import app.meetacy.sdk.types.user.UserDetails | ||
import app.meetacy.sdk.types.user.UserId | ||
import app.meetacy.sdk.types.user.Username | ||
|
||
public data class GetUserByUsernameRequest( | ||
val token: Token, | ||
val username: Username | ||
) : MeetacyRequest<GetUserByUsernameRequest.Response> { | ||
public data class Response(val user: UserDetails) | ||
} |
11 changes: 11 additions & 0 deletions
11
api/src/commonMain/kotlin/app/meetacy/sdk/exception/MeetacyUserNotFoundException.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,11 @@ | ||
package app.meetacy.sdk.exception | ||
|
||
public class MeetacyUserNotFoundException(message: String) : MeetacyResponseException( | ||
code = CODE, | ||
message = message, | ||
cause = null | ||
) { | ||
public companion object { | ||
public const val CODE: Int = 8 | ||
} | ||
} |
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