Get find phone switch

Function table: supportGetFindPhoneSwitch (protocol JSON key: support_get_find_phone_switch)

Examples

Swift

Cmds.getFindPhoneSwitch().send { rs in
    if case .success(let obj) = rs {
        // success, obj is IDOFindPhoneSwitchModel, obj.onOff
    } else {
        // failure
    }
}

Kotlin

Cmds.getFindPhoneSwitch().send {
    if (it.error.code == 0) {
        // success, it.res is IDOFindPhoneSwitchModel, it.res.onOff
    } else {
        // failure
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2026-08-12 01:39:50

results matching ""

    No results matching ""