Updated on 2026-08-14
This commit is contained in:
commit
7732075c7b
4 changed files with 75 additions and 7 deletions
23
app/src/main/java/com/tangem/data/network/BinanceApi.java
Normal file
23
app/src/main/java/com/tangem/data/network/BinanceApi.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package com.tangem.data.network;
|
||||
|
||||
import com.tangem.data.network.model.BinanceAccount;
|
||||
import com.tangem.data.network.model.BinanceError;
|
||||
import com.tangem.data.network.model.BinanceFees;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.Body;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Headers;
|
||||
import retrofit2.http.POST;
|
||||
|
||||
public interface BinanceApi {
|
||||
@GET(Server.ApiBinance.Method.ACCOUNT)
|
||||
Call<BinanceAccount> binanceAccount();
|
||||
|
||||
@GET(Server.ApiBinance.Method.FEES)
|
||||
Call<BinanceFees> binanceFees();
|
||||
|
||||
@Headers("Content-Type: text/plain")
|
||||
@POST(Server.ApiBinance.Method.BROADCAST)
|
||||
Call<BinanceError> binanceBroadcast(@Body String txForSend);
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
package com.tangem.data.network;
|
||||
|
||||
public class ServerApiBinance {
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
package com.tangem.data.network.model
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import java.security.MessageDigest
|
||||
|
||||
data class BinanceAccount(
|
||||
@SerializedName("address")
|
||||
var address: String? = null,
|
||||
|
||||
@SerializedName("sequence")
|
||||
var sequence: Long? = null,
|
||||
|
||||
@SerializedName("balances")
|
||||
var balances: List<BinanceBalance>? = null
|
||||
)
|
||||
|
||||
data class BinanceBalance(
|
||||
@SerializedName("symbol")
|
||||
var symbol: String? = null,
|
||||
|
||||
@SerializedName("free")
|
||||
var free: String? = null
|
||||
)
|
||||
|
||||
data class BinanceFees(
|
||||
@SerializedName("fixed_fee_params")
|
||||
var fixed_fee_params: BinanceFixedFee? = null
|
||||
)
|
||||
|
||||
data class BinanceFixedFee(
|
||||
@SerializedName("msg_type")
|
||||
var msg_type: String? = null,
|
||||
|
||||
@SerializedName("fee")
|
||||
var fee: Long? = null
|
||||
)
|
||||
|
||||
data class BinanceError(
|
||||
@SerializedName("message")
|
||||
var message: String? = null
|
||||
)
|
||||
|
|
@ -17,13 +17,13 @@
|
|||
<dimen name="empty_wallet_left_col_width">140dp</dimen>
|
||||
<dimen name="empty_wallet_left_col_margin">16dp</dimen>
|
||||
|
||||
<dimen name="text_size_2_small">11sp</dimen>
|
||||
<dimen name="text_size_small">13sp</dimen>
|
||||
<dimen name="text_size_1_small">15sp</dimen>
|
||||
<dimen name="text_size_medium">19sp</dimen>
|
||||
<dimen name="text_size_1_large">23sp</dimen>
|
||||
<dimen name="text_size_large">26sp</dimen>
|
||||
<dimen name="text_size_pin">34sp</dimen>
|
||||
<dimen name="text_size_2_small">11dp</dimen>
|
||||
<dimen name="text_size_small">13dp</dimen>
|
||||
<dimen name="text_size_1_small">15dp</dimen>
|
||||
<dimen name="text_size_medium">19dp</dimen>
|
||||
<dimen name="text_size_1_large">23dp</dimen>
|
||||
<dimen name="text_size_large">26dp</dimen>
|
||||
<dimen name="text_size_pin">34dp</dimen>
|
||||
|
||||
<dimen name="size_qr_image">180dp</dimen>
|
||||
<dimen name="size_explore_image">30dp</dimen>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue