package com.xty.network.model

import com.chad.library.adapter.base.entity.MultiItemEntity

data class SportDetail(
    val actionList: MutableList<Action>,
    val beforeDiet: String,
    val beforeMusclePain: String,
    val beforeSleep: String,
    val beforeStamina: String,
    val beforeStretchArea: String,
    val beforeTargetMuscle: String,
    val beforeWarmUp: String,
    val beforeWatchDate: String,
    val calorie: String,
    val createTime: String,
    val createUser: String,
    val createUserId: Int,
    val distance: String,
    val duration: String,
    val endTime: String,
    val evaluationResult: String,
    val finishTime: String,
    val id: Int,
    val lessonEndTime: String,
    val lessonNumber: String,
    val lessonStartTime: String,
    val orgName: String,
    val planName: String,
    val remark: String,
    val speedResistance: String,
    val sportsAerobic: String,
    val sportsStrength: String,
    val sportsWay: String,
    val startTime: String,
    val status: Int,
    val userId: Int,
    var waitSend: String,
    val watchData: WatchData,
) {
    data class Action(
        val createTime: String,
        val endTime: String,
        val groupInfo: String,
        val groupList: MutableList<Group>,
        val id: Int,
        val name: String,
        val planId: Int,
        var realEndTime: String,
        var realTime: String,
        var time: String,
        override var itemType: Int=1
    ): MultiItemEntity {

        data class Group(
            val dataValue1: String,
            val dataValue2: String,
            var realDataValue1: String,
            var realDataValue2: String,
            override var itemType: Int
        ): MultiItemEntity
    }

    data class WatchData(
        val dbpData: DbpData,
        val hrData: HrData,
        val respData: RespData,
        val soData: SoData,
        val sugarData: SugarData,
        val tempData: TempData
    ) {
        data class SugarData(
            val dataValue: String,
            val message: String,
            val time: String
        )
        data class DbpData(
            val dataValue: String,
            val message: String,
            val time: String
        )
        data class HrData(
            val dataValue: String,
            val message: String,
            val time: String
        )

        data class RespData(
            val dataValue: String,
            val message: String,
            val time: String
        )

        data class SoData(
            val dataValue: String,
            val message: String,
            val time: String
        )

        data class TempData(
            val dataValue: String,
            val message: String,
            val time: String
        )
    }
}