获取勿扰模式状态

功能表 : getDoNotDisturbMain3

示例

Swift

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

Kotlin

Cmds.getNotDisturbStatus().send {
    if (it.error.code == 0) {
        // 成功
        // it.res is IDONotDisturbStatusModel
    }else {
        // 失败
    }
}

ArkTs

Cmds.getNotDisturbStatus((res)=>{
    if(res.success){
    //成功
    // res.value is IDONotDisturbStatusModel
    } else {
    //失败
    }
 })
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2026-03-13 12:04:56

results matching ""

    No results matching ""