generated from orchestr7/react-kotlin-template
-
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.
- Loading branch information
Showing
7 changed files
with
78 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
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
22 changes: 13 additions & 9 deletions
22
frontend/src/jsMain/kotlin/ru/posidata/views/utils/externals/telegram/TUser.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,11 +1,15 @@ | ||
@file:JsModule("react-telegram-auth") | ||
@file:JsNonModule | ||
|
||
package ru.posidata.views.utils.externals.telegram | ||
|
||
data class TUser( | ||
val auth_date: Int, | ||
val first_name: String, | ||
val last_name: String?, | ||
val hash: String, | ||
val id: Int, | ||
val photo_url: String?, | ||
val username: String? | ||
) | ||
@JsName("TUser") | ||
external interface TUser { | ||
var auth_date: Int | ||
var first_name: String | ||
var last_name: String? | ||
var hash: String | ||
var id: Int | ||
var photo_url: String? | ||
var username: String? | ||
} |
11 changes: 11 additions & 0 deletions
11
frontend/src/jsMain/kotlin/ru/posidata/views/utils/externals/telegram/User.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 ru.posidata.views.utils.externals.telegram | ||
|
||
data class User ( | ||
val authDate: Int, | ||
val firstName: String, | ||
val lastName: String?, | ||
val hash: String, | ||
val id: Int, | ||
val photoUrl: String?, | ||
val username: String?, | ||
) |
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