Remove a couple of not needed TODOs.

This commit is contained in:
Severiano Jaramillo 2019-08-30 19:52:23 -05:00
parent 232d81baa8
commit 70d5e3d4d2
2 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@ import androidx.room.PrimaryKey
@Entity(tableName = "balances")
data class Balance(
@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 = "last_update") val lastUpdate: Long
)

View file

@ -11,13 +11,13 @@ data class Transfer (
@ColumnInfo(name = "block_number") val blockNumber: Long,
@ColumnInfo(name = "timestamp") val timestamp: 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 = "source") val source: String, // TODO should be foreign key to UserAccount
@ColumnInfo(name = "destination") val destination: String, // TODO should be foreign key to UserAccount
@ColumnInfo(name = "fee_asset_id") val feeAssetId: String,
@ColumnInfo(name = "source") val source: String,
@ColumnInfo(name = "destination") val destination: String,
@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 = "bts_value") var btsValue: Long? = Transfer.NOT_CALCULATED
@ColumnInfo(name = "bts_value") var btsValue: Long? = NOT_CALCULATED
){
companion object {
// Constant used to specify an uninitialized BTS equivalent value
@ -26,7 +26,7 @@ data class Transfer (
val ERROR: Long? = -2L
}
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
btsValue = transferAmount
}