增加任务列表和下载功能
This commit is contained in:
64
app/src/main/java/com/navinfo/omqs/bean/TaskBean.kt
Normal file
64
app/src/main/java/com/navinfo/omqs/bean/TaskBean.kt
Normal file
@@ -0,0 +1,64 @@
|
||||
package com.navinfo.omqs.bean
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import com.navinfo.omqs.Constant
|
||||
import com.navinfo.omqs.system.SystemConstant
|
||||
import com.navinfo.omqs.tools.FileManager.Companion.FileDownloadStatus
|
||||
import io.realm.RealmList
|
||||
import io.realm.RealmObject
|
||||
import io.realm.annotations.PrimaryKey
|
||||
import io.realm.annotations.RealmClass
|
||||
|
||||
@RealmClass
|
||||
open class TaskBean @JvmOverloads constructor(
|
||||
/**
|
||||
* 测评任务id
|
||||
*/
|
||||
@PrimaryKey
|
||||
var id: Int = 0,
|
||||
/**
|
||||
* 测评任务名称
|
||||
*/
|
||||
var evaluationTaskName: String = "",
|
||||
/**
|
||||
* 市编码
|
||||
*/
|
||||
var cityCode: String = "",
|
||||
/**
|
||||
*市名称
|
||||
*/
|
||||
var cityName: String = "",
|
||||
/**
|
||||
* omdb标准版
|
||||
*/
|
||||
var dataVersion: String = "",
|
||||
/**
|
||||
* 测评人名称
|
||||
*/
|
||||
var evaluatorName: String = "",
|
||||
/**
|
||||
* 项目标签
|
||||
*/
|
||||
var project: String = "",
|
||||
/**
|
||||
* 图幅号
|
||||
*/
|
||||
@SerializedName("hadLinkDvo")
|
||||
var hadLinkDvoList: RealmList<HadLinkDvoBean> = RealmList<HadLinkDvoBean>(),
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
var fileSize: Long = 0L,
|
||||
/**
|
||||
* 当前下载进度
|
||||
*/
|
||||
var currentSize: Long = 0L,
|
||||
/**
|
||||
* 当前下载状态
|
||||
*/
|
||||
var status: Int = FileDownloadStatus.NONE
|
||||
) : RealmObject(){
|
||||
fun getDownLoadUrl():String{
|
||||
return "${Constant.SERVER_ADDRESS}devcp/download?fileStr=26"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user