获取压力开关

功能表:getSupportGetPressureSwitchInfo

示例

Swift

Cmds.getStressSwitch().send { rs in
    if case .success(let obj) = rs {
        // 成功
        // obj is IDOStressSwitchModel
    }else {
        // 失败
    }
}

Kotlin

Cmds.getStressSwitch().send {
    if (it.error.code == 0) {
        // 成功
        // it.res is IDOStressSwitchModel
    }else {
        // 失败
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-05-21 11:24:21

results matching ""

    No results matching ""