package com.xty.network.model

import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

data class AnalysisBean(
    var adorn: Adorn,
    var status: Status,
    var user: User,
    var analyse: Analyse,
    var analysis: Analysis,
    var organ: Organ,
    var healthTrend: List<ChildStatus>, //趋势
    var statistical: List<StatisTical>? = null,


) {

    data class Organ(
        var kidney: OrganChild,//肾脏
        var lymph: OrganChild, //淋巴
        var pericardium: OrganChild, //心包
        var cholecyst: OrganChild, //胆囊
        var liver: OrganChild, //肝脏
        var spleen:OrganChild,//脾脏
        var largeIntestine:OrganChild, //大肠
        var bladder: OrganChild, //膀胱
        var lungs: OrganChild, //肺
        var stomach: OrganChild, //胃
        var smallIntestine: OrganChild, //小肠
        var heart: OrganChild, //心脏
    )

    data class OrganChild(
        var model:ChildStatus,
        var value:List<ChildStatus>,
    )

    data class Analysis(
        var sleep: List<Content>? = null,
        var WmAnalysis: List<Content>? = null,
        var nutrition: List<Content>? = null,
        var TcmAnalysis: List<Content>? = null,
        var wm: List<Content>? = null,
        var exercise: List<Content>? = null,
        var tcm: List<Content>? = null,
        var diet: List<Content>? = null,
    )

    data class Content(

        var name: String,
        var dictName: String,
        var content: String
    )

    data class Analyse(
        val sleep: String,
        val temp: String,
        val dbp: String,
        val exercise: String,
        val so: String,
        val respiratory: String,
        val status: String,
        val hr: String
    )

    data class Adorn(
        val activeWear: Int,
        val dormancy: Int,
        val wearCount: Int
    )

    data class User(
        val actCity: Any,
        val actDistrict: Any,
        val actProvince: Any,
        val area: String,
        val age: String,
        val avatarUrl: String,
        val birthday: String,
        val city: String,
        val complexion: Any,
        val createBy: String,
        val createTime: Any,
        val deviceId: String,
        val disease: Any,
        val district: String,
        val emergencyContact: Any,
        val esignature: String,
        val headPortrait: Any,
        val healthy: Any,
        val height: Double,
        val hips: Any,
        val historyId: String,
        val id: Int,
        val idCard: String,
        val latitude: String,
        val longitude: String,
        val medicalHistory: String,
        val name: String,
        val openId: Any,
        val pageNum: Any,
        val pageSize: Any,
        val password: String,
        val phone: String,
        val province: String,
        val remark: Any,
        val sPeriodic: Any,
        val sex: String,
        val speriodic: Any,
        val updateBy: String,
        val updateTime: Any,
        val urgent: String,
        val urgent1: Any,
        val urgentPhone: String,
        val urgentPhone1: Any,
        val urgentRelation: String,
        val urgentRelation1: Any,
        val userCode: Any,
        val userId: Int,
        val waistline: Any,
        val weight: Double,
        var other: String,
        var historyName: String,
        var tumour: String,
        var diseaseList: MutableList<Operation>
    )
    data class Operation(
        var name:String,
        var time:String,
        var type:Int
    ): Serializable
    data class StatisTical(
        var start_time: Long,
        var min: Int,
        var max: Int,
        var maxStartTime: Long,
        var minStartTime: Long,
        var count: Int,
        var validCount: Int,
    )

    data class ChildStatus(
        var id: Int,
        var idHealth: Int,
        var userId: Int,
        var createTime: String,
    ){

        constructor():this(0,0 ,0,"")
    }
    data class Status(
        val createTime: String,
        val healthyId: String,
        val result: Int,
        val userId: Int
    )


}



