This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
full impl for MicrosoftAuthenticator
- Loading branch information
1 parent
86f313e
commit 4c0913d
Showing
8 changed files
with
93 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ build | |
|
||
# test directory | ||
.minecraft | ||
.mikataneko | ||
|
||
.idea |
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
39 changes: 39 additions & 0 deletions
39
lib/src/main/kotlin/mikataneko/models/minecraft/ProfileResponse.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,39 @@ | ||
package mikataneko.models.minecraft | ||
|
||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.json.JsonObject | ||
|
||
sealed class ProfileResponse | ||
|
||
@Serializable | ||
data class FoundProfile( | ||
val id: String, | ||
val name: String, | ||
val skins: List<Skin>, | ||
val capes: List<Cape>, | ||
val profileActions: JsonObject, | ||
) : ProfileResponse() | ||
|
||
@Serializable | ||
data class Skin( | ||
val id: String, | ||
val state: String, | ||
val url: String, | ||
val textureKey: String, | ||
val variant: String, | ||
) | ||
|
||
@Serializable | ||
data class Cape( | ||
val id: String, | ||
val state: String, | ||
val url: String, | ||
val alias: String, | ||
) | ||
|
||
@Serializable | ||
data class NotFoundProfile( | ||
val path: String, | ||
val error: String, | ||
val errorMessage: String, | ||
) : ProfileResponse() |
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