Created
February 4, 2022 14:29
-
-
Save ngallazzi/7b377c90199b3b65eeaf37aafd5ac9d4 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
// Both functions print something | |
private fun printInvoiceHeader(header: InvoiceHeader) { | |
binding.tvInvoicePreview.text = header.toString() | |
} | |
private fun printCustomerDetails(customer: Customer) { | |
var customerDetails = "" | |
customerDetails += "CUSTOMER\n" | |
customerDetails += "First Name: ${customer.firstName}\nLast Name: ${customer.lastName}\n" | |
binding.tvInvoicePreview.append("$customerDetails\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment