-
Notifications
You must be signed in to change notification settings - Fork 43
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
1 parent
88ab78d
commit f67e194
Showing
59 changed files
with
732 additions
and
363 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
49 changes: 49 additions & 0 deletions
49
apps/wallet/data/dapps/src/main/java/com/tonapps/wallet/data/dapps/entities/AppPushEntity.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,49 @@ | ||
package com.tonapps.wallet.data.dapps.entities | ||
|
||
import android.net.Uri | ||
import androidx.core.net.toUri | ||
import com.tonapps.extensions.getLongCompat | ||
import org.json.JSONObject | ||
|
||
data class AppPushEntity( | ||
val from: AppEntity, | ||
val body: Body | ||
) { | ||
|
||
val timestamp: Long | ||
get() = body.dateCreate | ||
|
||
val iconUrl: String | ||
get() = from.iconUrl | ||
|
||
val title: String | ||
get() = body.title | ||
|
||
val message: String | ||
get() = body.message | ||
|
||
val url: Uri | ||
get() = body.dappUrl | ||
|
||
val deeplink: String | ||
get() = body.link | ||
|
||
data class Body( | ||
val dappUrl: Uri, | ||
val title: String, | ||
val message: String, | ||
val link: String, | ||
val account: String, | ||
val dateCreate: Long | ||
) { | ||
|
||
constructor(json: JSONObject) : this( | ||
dappUrl = json.getString("dapp_url").toUri(), | ||
title = json.getString("title"), | ||
message = json.getString("message"), | ||
link = json.getString("link"), | ||
account = json.getString("account"), | ||
dateCreate = json.getLongCompat("date_create") | ||
) | ||
} | ||
} |
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
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
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
3 changes: 0 additions & 3 deletions
3
...llet/instance/app/src/main/java/com/tonapps/tonkeeper/manager/tonconnect/bridge/Bridge.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
4 changes: 0 additions & 4 deletions
4
.../app/src/main/java/com/tonapps/tonkeeper/manager/tonconnect/bridge/BridgeConnectHelper.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.