Remove a couple of not needed TODOs.
This commit is contained in:
parent
232d81baa8
commit
70d5e3d4d2
2 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,7 @@ import androidx.room.PrimaryKey
|
||||||
@Entity(tableName = "balances")
|
@Entity(tableName = "balances")
|
||||||
data class Balance(
|
data class Balance(
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "asset_id") val assetId: String, // TODO should be foreign key?
|
@ColumnInfo(name = "asset_id") val assetId: String,
|
||||||
@ColumnInfo(name = "asset_amount") val assetAmount: Long,
|
@ColumnInfo(name = "asset_amount") val assetAmount: Long,
|
||||||
@ColumnInfo(name = "last_update") val lastUpdate: Long
|
@ColumnInfo(name = "last_update") val lastUpdate: Long
|
||||||
)
|
)
|
|
@ -11,13 +11,13 @@ data class Transfer (
|
||||||
@ColumnInfo(name = "block_number") val blockNumber: Long,
|
@ColumnInfo(name = "block_number") val blockNumber: Long,
|
||||||
@ColumnInfo(name = "timestamp") val timestamp: Long,
|
@ColumnInfo(name = "timestamp") val timestamp: Long,
|
||||||
@ColumnInfo(name = "fee_amount") val feeAmount: Long,
|
@ColumnInfo(name = "fee_amount") val feeAmount: Long,
|
||||||
@ColumnInfo(name = "fee_asset_id") val feeAssetId: String, // TODO should be foreign key to Asset
|
@ColumnInfo(name = "fee_asset_id") val feeAssetId: String,
|
||||||
@ColumnInfo(name = "source") val source: String, // TODO should be foreign key to UserAccount
|
@ColumnInfo(name = "source") val source: String,
|
||||||
@ColumnInfo(name = "destination") val destination: String, // TODO should be foreign key to UserAccount
|
@ColumnInfo(name = "destination") val destination: String,
|
||||||
@ColumnInfo(name = "transfer_amount") val transferAmount: Long,
|
@ColumnInfo(name = "transfer_amount") val transferAmount: Long,
|
||||||
@ColumnInfo(name = "transfer_asset_id") val transferAssetId: String, // TODO should be foreign key to Asset
|
@ColumnInfo(name = "transfer_asset_id") val transferAssetId: String,
|
||||||
@ColumnInfo(name = "memo") val memo: String,
|
@ColumnInfo(name = "memo") val memo: String,
|
||||||
@ColumnInfo(name = "bts_value") var btsValue: Long? = Transfer.NOT_CALCULATED
|
@ColumnInfo(name = "bts_value") var btsValue: Long? = NOT_CALCULATED
|
||||||
){
|
){
|
||||||
companion object {
|
companion object {
|
||||||
// Constant used to specify an uninitialized BTS equivalent value
|
// Constant used to specify an uninitialized BTS equivalent value
|
||||||
|
@ -26,7 +26,7 @@ data class Transfer (
|
||||||
val ERROR: Long? = -2L
|
val ERROR: Long? = -2L
|
||||||
}
|
}
|
||||||
init {
|
init {
|
||||||
if(transferAssetId.equals("1.3.0")){
|
if(transferAssetId == "1.3.0"){
|
||||||
// If the transferred asset is BTS, we can fill the btsValue field immediately
|
// If the transferred asset is BTS, we can fill the btsValue field immediately
|
||||||
btsValue = transferAmount
|
btsValue = transferAmount
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue