Get user habit information
Function table: getSupportSedentaryTensileHabitInfo
Example
Swift
Cmds.getHabitInfo().send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOHabitInfoModel
}else {
// Failure
}
}
Kotlin
Cmds.getHabitInfo().send {
if (it.error.code == 0) {
// Success
// it.res is IDOHabitInfoModel
}else {
// Failure
}
}