Skip to content

Instantly share code, notes, and snippets.

@zamahaka
Created June 4, 2019 14:12
Show Gist options
  • Save zamahaka/8a9f4eaae935b187fdc91fb4ed13ea39 to your computer and use it in GitHub Desktop.
Save zamahaka/8a9f4eaae935b187fdc91fb4ed13ea39 to your computer and use it in GitHub Desktop.
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