ApiSmartHome class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
bindDevice(
String userId, String barcode) → Future< String> -
APP扫码绑定设备
userId
app用户idbarcode
二维码内容 -
formatResponse(
Map< String, dynamic> result) → String -
getBindDeviceInfo(
String userId) → Future< String> -
获取绑定设备信息
userId
app用户id -
getDeviceRecipeMenuInfo(
String deviceId) → Future< String> - 获取设备激活菜单信息
-
getDeviceRecipeMenuInfoByDeviceId(
int pageNo, int pageSize, String version) → Future< String> - 根据菜单id获取分类列表
-
getDeviceRecipesByClassId(
String userId, String classId, int pageNo, int pageSize, String version) → Future< String> - 根据菜单id获取分类列表
-
getDeviceWorkInfo(
String deviceId) → Future< String> -
获取绑定设备信息
userId
app用户id -
getRecipeDetailByRecipeId(
String deviceId, List< String> recipeId) → Future<String> - 根据菜谱id和设备id获取菜谱详情
-
setDeviceFrequency(
String frequency) → Future< String> -
获取绑定设备信息
userId
app用户id -
setDeviceWorkState(
String data) → Future< String> - 根据菜谱id和设备id获取菜谱详情
-
unBindDevice(
String userId, String deviceId) → Future< String> -
APP解绑设备
userId
app用户iddeviceId
要解绑的设备id