Query sport types supporting auto-pause / auto-end

Function table: supportGetSportAutoPauseEndTypes

operate: 1 auto-pause list, 2 auto-end list, 3 both (bitwise OR).

Swift

Cmds.getSportAutoPauseEndTypes(operate: IDOGetSportAutoPauseEndTypesModel.operateBoth).send { rs in
    if case .success(let obj) = rs {
        // obj.autoPauseItems / obj.autoEndItems
    }
}

Kotlin

Cmds.getSportAutoPauseEndTypes(IDOGetSportAutoPauseEndTypesModel.OPERATE_BOTH).send {
    if (it.error.code == 0) {
        // it.res?.autoPauseItems / autoEndItems
    }
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2026-09-23 02:35:02

results matching ""

    No results matching ""