Set the weather city name

Function table: setWeatherCity

Parameter description:

Field name Field type Field description
cityName String City name
Function table getSupportV3LongCityName supports 74-byte city names after enabling
If the function table is not enabled, the default size is 16 bytes

Example

Swift

Cmds.setWeatherCityName().send { rs in
if case .success(let obj) = rs {
// Success
// obj is IDOCmdSetResponseModel
}else {
// Failure
} 
}

Kotlin

Cmds.setWeatherCityName().send { 
    if (it.error.code == 0) { 
        // Success 
        // it.res is IDOCmdSetResponseModel
     }else 
    { 
       // Failure 
     } 
}
Copyright © 2023-2024 IDO. All rights reserved. all right reserved,powered by Gitbook修改日期: 2024-11-01 12:07:09

results matching ""

    No results matching ""