Get the all-day step goal
Function table: getStepDataTypeV2
Example
Swift
Cmds.getStepGoal().send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOStepGoalModel
}else {
// Failure
}
}
Kotlin
Cmds.getStepGoal().send {
if (it.error.code == 0) {
// Success
// it.res is IDOStepGoalModel
}else {
// Failure
}
}