TuyaSmartHomeMember Class Reference

Inherits from NSObject
Declared in TuyaSmartHomeMember.h

– removeHomeMemberWithMemberId:success:failure:

Remove a home member 删除家庭成员

- (void)removeHomeMemberWithMemberId:(long long)memberId success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

success

Success block

failure

Failure block

Discussion

Remove a home member 删除家庭成员

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberInfoWithMemberRequestModel:success:failure:

Update home member info 修改家庭成员信息

- (void)updateHomeMemberInfoWithMemberRequestModel:(TuyaSmartHomeMemberRequestModel *)memberRequestModel success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberRequestModel

request model, Set the corresponding property

success

success callback

failure

failure callcack

Discussion

Update home member info 修改家庭成员信息

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberRemarkNameWithMemberId:name:isAdmin:success:failure:

Update home member note name 更新家庭成员备注名称

- (void)updateHomeMemberRemarkNameWithMemberId:(long long)memberId name:(NSString *)name isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

name

Note name

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Update home member note name 更新家庭成员备注名称

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberHeadPicWithMemberId:headPic:isAdmin:success:failure:

Update home member portrait 更新家庭成员头像

- (void)updateHomeMemberHeadPicWithMemberId:(long long)memberId headPic:(UIImage *)headPic isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

headPic

Portrait

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Update home member portrait 更新家庭成员头像

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberAdminWithMemberId:isAdmin:success:failure:

Update home member management authority 更新家庭成员管理权限

- (void)updateHomeMemberAdminWithMemberId:(long long)memberId isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Update home member management authority 更新家庭成员管理权限

Declared In

TuyaSmartHomeMember.h

– getAuthRoomListWithHomeId:memberID:success:failure:

获取可选的房间列表 fetch optional room list

- (void)getAuthRoomListWithHomeId:(long long)homeID memberID:(long long)memberID success:(TYSuccessList)success failure:(TYFailureError)failure

Parameters

homeID

homeID 家庭ID

memberID

member id 成员ID

success

success callback

failure

failure callback

Discussion

获取可选的房间列表 fetch optional room list

Declared In

TuyaSmartHomeMember.h

– getAuthSceneListWithHomeID:memberID:success:failure:

获取可选的场景或自动化列表 fetch optional scene list

- (void)getAuthSceneListWithHomeID:(long long)homeID memberID:(long long)memberID success:(TYSuccessList)success failure:(TYFailureError)failure

Parameters

homeID

homeID 家庭ID

memberID

member id 成员ID

success

success callback

failure

failure callback

Discussion

获取可选的场景或自动化列表 fetch optional scene list

Declared In

TuyaSmartHomeMember.h

– saveAuthRoomListWithHomeId:memberID:roomIDs:success:failure:

更新自定义角色有权限的房间列表 update custom role have jurisdiction rooms

- (void)saveAuthRoomListWithHomeId:(long long)homeID memberID:(long long)memberID roomIDs:(NSArray<NSNumber*> *)roomIDs success:(TYSuccessID)success failure:(TYFailureError)failure

Parameters

homeID

homeID 家庭ID

memberID

member id 成员ID

roomIDs

有权限的房间ID列表 have jurisdiction room id list

success

success callback

failure

failure callback

Discussion

更新自定义角色有权限的房间列表 update custom role have jurisdiction rooms

Declared In

TuyaSmartHomeMember.h

– saveAuthSceneListWithHomeId:memberID:ruleIDs:success:failure:

更新自定义角色有权限的的场景列表 update custom role have jurisdiction rule list

- (void)saveAuthSceneListWithHomeId:(long long)homeID memberID:(long long)memberID ruleIDs:(NSArray<NSString*> *)ruleIDs success:(TYSuccessID)success failure:(TYFailureError)failure

Parameters

homeID

homeID 家庭ID

memberID

member id 成员ID

ruleIDs

有权限的场景ID列表 have jurisdiction rule id list

success

success callback

failure

failure callback

Discussion

更新自定义角色有权限的的场景列表 update custom role have jurisdiction rule list

Declared In

TuyaSmartHomeMember.h

– addHomeMemberWithHomeId:countryCode:account:name:isAdmin:success:failure:

Add a home member 添加家庭成员

- (void)addHomeMemberWithHomeId:(long long)homeId countryCode:(NSString *)countryCode account:(NSString *)account name:(NSString *)name isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

homeId

Home Id

countryCode

Country code

account

User account

name

Note name

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Add a home member 添加家庭成员

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberNameWithMemberId:name:isAdmin:success:failure:

Update home member info 修改家庭成员信息

- (void)updateHomeMemberNameWithMemberId:(long long)memberId name:(NSString *)name isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

name

Note name

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Update home member info 修改家庭成员信息

Declared In

TuyaSmartHomeMember.h

– addHomeMemberWithHomeId:name:headPic:countryCode:userAccount:isAdmin:success:failure:

添加家庭成员

- (void)addHomeMemberWithHomeId:(long long)groupId name:(NSString *)name headPic:(UIImage *)headPic countryCode:(NSString *)countryCode userAccount:(NSString *)account isAdmin:(BOOL)admin success:(TYSuccessDict)success failure:(TYFailureError)failure

Parameters

groupId

家庭组ID

name

家庭成员名字

headPic

家庭成员头像

countryCode

国家码

account

用户账号

admin

是否是管理员

success

操作成功回调

failure

操作失败回调

Discussion

添加家庭成员

Declared In

TuyaSmartHomeMember.h

– getHomeMemberListWithHomeId:success:failure:

Get home member list 获取家庭成员列表

- (void)getHomeMemberListWithHomeId:(long long)homeId success:(void ( ^ ) ( NSArray<TuyaSmartHomeMemberModel*> *memberList ))success failure:(TYFailureError)failure

Parameters

homeId

Home Id

success

Success block

failure

Failure block

Discussion

Get home member list 获取家庭成员列表

Declared In

TuyaSmartHomeMember.h

– updateHomeMemberInfoWithMemberId:name:headPic:isAdmin:success:failure:

Update home member info 修改家庭成员信息

- (void)updateHomeMemberInfoWithMemberId:(long long)memberId name:(NSString *)name headPic:(UIImage *)headPic isAdmin:(BOOL)isAdmin success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

memberId

Member Id

name

Note name

headPic

Portrait

isAdmin

Whether the administrator

success

Success block

failure

Failure block

Discussion

Update home member info 修改家庭成员信息

Declared In

TuyaSmartHomeMember.h