Module: miot/service/infra

infra

Methods

(static) autoMatchRemote(clientName, page)

autoMatchRemote

Parameters:
Name Type Description
clientName string
page json

(static) buildIRCode(freq, base64Data)

buildIRCode

Parameters:
Name Type Description
freq int
base64Data string

(static) convertResultDataToJson(data) → {*}

对于Android这边,data的格式统一为:{code:x, result:"xxx"} 保证与ios统一,对result进行一次json转换

Parameters:
Name Type Description
data
Returns:
Type
*

(static) createClient(name)

createClient

Parameters:
Name Type Description
name String

(static) destroyClient(name)

destroyClient

Parameters:
Name Type Description
name String

(static) downloadRemote(clientName, remoteId)

downloadRemote

Parameters:
Name Type Description
clientName string
remoteId string

(static) exactMatchRemote(clientName, page)

exactMatchRemote

Parameters:
Name Type Description
clientName string
page json
Returns:

promise

(static) exactMatchRemoteIfPower(clientName, page, matchPower)

exactMatchRemoteIfPower

Parameters:
Name Type Description
clientName string
page json
matchPower bool
Returns:

promise

(static) fetchAirRemoteInfrared(remoteDict, key, state)

Parameters:
Name Type Description
remoteDict json
key json
state json

(static) fetchAirTimerInfrared(keyDict, state, time)

Parameters:
Name Type Description
keyDict json
state json
time json

(static) fetchRemoteInfrared(remoteDict, key)

fetchRemoteInfrared

Parameters:
Name Type Description
remoteDict json
key json

(static) getAirRemoteState(remoteDict)

getAirRemoteState

Parameters:
Name Type Description
remoteDict json

(static) getAllCities()

加载城市列表

(static) getAllProviders()

加载运营商

(static) getAllProvinces()

加载全部省份信息(省份不包含城市列表)

(static) getCityInProvince(province_id)

getCityInProvince

Parameters:
Name Type Description
province_id int

(static) getIRCode(freq, data)

getIRCode

Parameters:
Name Type Description
freq int
data string

(static) getProviderInCity(city_id)

getProviderInCity

Parameters:
Name Type Description
city_id int

(static) isCustomKey(keyDict)

isCustomKey

Parameters:
Name Type Description
keyDict json

(static) isMemoryKey(keyDict)

isMemoryKey

Parameters:
Name Type Description
keyDict json

(static) loadBrands(clientName)

loadBrands

Parameters:
Name Type Description
clientName string

(static) loadCityProviders()

加载城市 - 运营商关联数据

(static) loadProviderRemotesByCity(city_id, provider)

获取运营商推荐遥控器

Parameters:
Name Type Description
city_id int
provider int

(static) missModel(clientName, type, brandId, model)

missModel

Parameters:
Name Type Description
clientName string
type int
brandId int
model string

(static) searchAirRemote(clientName, page)

searchAirRemote

Parameters:
Name Type Description
clientName string
page json
Returns:

promise

(static) searchDiy(clientName, page)

searchDiy

Parameters:
Name Type Description
clientName string
page json
Returns:

promise

(static) searchOfficial(clientName, page)

searchOfficial

Parameters:
Name Type Description
clientName string
page json
Returns:

promise