16 lines
397 B
Kotlin
16 lines
397 B
Kotlin
package com.example.avtex.data
|
|
|
|
import java.text.SimpleDateFormat
|
|
import java.util.Date
|
|
import java.util.Locale
|
|
|
|
data class LogEntry(
|
|
val timestamp: Long = System.currentTimeMillis(),
|
|
val tag: String,
|
|
val message: String,
|
|
val isImportant: Boolean = false
|
|
) {
|
|
val formattedTime: String
|
|
get() = SimpleDateFormat("HH:mm:ss", Locale.getDefault()).format(Date(timestamp))
|
|
}
|