Set pet info
Function table: setPetInfo
Example
Swift
let param = IDOPetInfoParamModel(petType: 1, weight: 450, gender: 0, year: 2024, month: 1, day: 1)
Cmds.setPetInfo(param).send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOPetInfoReplyModel
} else {
// Failure
}
}
Kotlin
val param = IDOPetInfoParamModel(petType = 1, weight = 450, gender = 0, year = 2024, month = 1, day = 1)
Cmds.setPetInfo(param).send {
if (it.error.code == 0) {
// Success
// it.res is IDOPetInfoReplyModel
} else {
// Failure
}
}