data class Age
Custom response class to represent a length of time. This is created because Duration is Java 8 only (requires API 26 on Android). I also did not want to bring in a library for this one very small need so I decided to create my own thing.
enum class Unit |
Age(time: Int, unit: Unit)
Custom response class to represent a length of time. This is created because Duration is Java 8 only (requires API 26 on Android). I also did not want to bring in a library for this one very small need so I decided to create my own thing. |
val time: Int |
|
val unit: Unit |
fun toDate(): Date |