2014-11-11 21:53:13 -05:00
|
|
|
package org.bspeice.minimalbible.activity.downloader.manager
|
|
|
|
|
|
|
|
import org.crosswire.jsword.book.Book
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by bspeice on 11/11/14.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class DLProgressEvent(val progress: Int, val b: Book) {
|
|
|
|
class object {
|
|
|
|
val PROGRESS_COMPLETE = 100
|
|
|
|
val PROGRESS_BEGINNING = 0
|
|
|
|
}
|
|
|
|
|
2014-11-20 23:19:06 -05:00
|
|
|
fun toCircular() = (progress.toFloat() * 360 / 100).toInt()
|
2014-11-11 21:53:13 -05:00
|
|
|
}
|