手机app通过这个命令开关,实现通知应用状态设置

功能表: setMsgAllSwitch (二级功能表)

示例

Swift

let param = IDONotificationStatusParamModel(...)

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

Kotlin

val param = IDONotificationStatusParamModel(...)

Cmds.setNotificationStatus(param).send {
    if (it.error.code == 0) {
        // 成功
        // it.res is IDOCmdSetResponseModel
    }else {
        // 失败
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-04-12 11:43:51

results matching ""

    No results matching ""