diff options
Diffstat (limited to 'app/src/main/java/uk/co/blatech/blaupload3/model/File.kt')
-rw-r--r-- | app/src/main/java/uk/co/blatech/blaupload3/model/File.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt b/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt index 677b852..70c4b34 100644 --- a/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt +++ b/app/src/main/java/uk/co/blatech/blaupload3/model/File.kt @@ -1,13 +1,14 @@ package uk.co.blatech.blaupload3.model +import android.net.Uri import java.net.URI import java.text.SimpleDateFormat import java.util.* data class File (var filename: String, var type: String, var modified: Long, var size: Long) { - var url = URI("http://wupload.of.je/$filename") - var thumb_url = URI("http://wupload.of.je/thumbs/$filename") + var url = Uri.parse("http://wupload.of.je/$filename") + var thumb_url = Uri.parse("http://wupload.of.je/thumbs/$filename") var modified_formatted = SimpleDateFormat("dd/MM/yyyy mm:HH:ss").format(Date(modified*1000)) val units = arrayOf<String>("B", "kB", "MB", "GB", "TB") var size_lambda = { size : Long -> |