Created
June 4, 2019 14:12
-
-
Save zamahaka/8a9f4eaae935b187fdc91fb4ed13ea39 to your computer and use it in GitHub Desktop.
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
data class TransactionMeta( | |
val transaction: Transaction, | |
val color: Color, | |
val title: String, | |
val time: Timestamp, | |
val message: String?, | |
val address: String, | |
val amount: String, | |
val isSpace: Boolean, | |
val isCancelable: Boolean, | |
val formattedDetails: TransactionMetaFormattedDetails | |
) : IdEntity<Long> by transaction { | |
enum class Color { GREY, LIGHT_GREY, BLACK, GREEN, RED, YELLOW } | |
} | |
val TransactionMeta.isNotCancelable get() = !isCancelable | |
data class TransactionMetaFormattedDetails( | |
val ethFee: String?, | |
val ethSend: String?, | |
val prgSend: String?, | |
val prgReceived: String?, | |
val prgBurned: String?, | |
val prgFee: String? | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment