Exodus: Drop unused deprecated method
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -21,11 +21,6 @@ package com.aurora.store.data.model
|
|||||||
|
|
||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import kotlinx.parcelize.Parcelize
|
import kotlinx.parcelize.Parcelize
|
||||||
import java.text.DateFormat
|
|
||||||
import java.text.ParseException
|
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
data class ExodusReport(
|
data class ExodusReport(
|
||||||
val creator: String = String(),
|
val creator: String = String(),
|
||||||
val name: String = String(),
|
val name: String = String(),
|
||||||
@@ -41,20 +36,7 @@ data class Report(
|
|||||||
val updatedAt: String = String(),
|
val updatedAt: String = String(),
|
||||||
val versionCode: String = String(),
|
val versionCode: String = String(),
|
||||||
val trackers: List<Int> = listOf()
|
val trackers: List<Int> = listOf()
|
||||||
) : Parcelable {
|
) : Parcelable
|
||||||
|
|
||||||
fun getFormattedCreationDate(): String {
|
|
||||||
return try {
|
|
||||||
val simpleDateFormat: DateFormat = SimpleDateFormat(
|
|
||||||
"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",
|
|
||||||
Locale.getDefault()
|
|
||||||
)
|
|
||||||
simpleDateFormat.parse(creationDate).toString()
|
|
||||||
} catch (e: ParseException) {
|
|
||||||
""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
data class ExodusTracker(
|
data class ExodusTracker(
|
||||||
var id: Int = 0,
|
var id: Int = 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user