Updated on 2026-08-14
This commit is contained in:
parent
2aca481d18
commit
254acd0797
3 changed files with 48 additions and 11 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.data.network
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.support.v7.app.AlertDialog
|
||||
|
|
@ -34,6 +35,13 @@ class VolleyHelper (private val requestCardVerify: IRequestCardVerify){
|
|||
doRequestString(Server.API.Method.VERIFY, params)
|
||||
}
|
||||
|
||||
fun requestCardVerifyShowResponse(context: Activity, card: TangemCard) {
|
||||
val params = HashMap<String, String>()
|
||||
params["CID"] = Util.bytesToHex(card.cid)
|
||||
params["publicKey"] = Util.bytesToHex(card.cardPublicKey)
|
||||
doRequestDebug(context, Server.API.Method.VERIFY, params)
|
||||
}
|
||||
|
||||
fun doRequestDebug(context: Context, url: String, params: Map<String, String>) {
|
||||
val stringRequest = object : StringRequest(Request.Method.GET, url,
|
||||
{ response ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue