-
public interface IThingHomeMember
Provide the ability to manage family members.
-
-
Method Summary
Modifier and Type Method Description abstract void
updateMember(long memberId, String name, boolean admin, IResultCallback callback)
Update family members' note names and permissions (old method). abstract void
updateMember(MemberWrapperBean memberWrapperBean, IResultCallback callback)
Update member's information (recommend). abstract void
updateMemberName(long memberId, String name, IResultCallback callback)
Update family members' note names abstract void
updateMemberRole(long memberId, boolean admin, IResultCallback callback)
Update family member's role. abstract void
addMember(long mHomeId, String countryCode, String userAccount, String name, boolean admin, IThingMemberResultCallback callback)
Adding a new member to a family (old). abstract void
addMember(MemberWrapperBean memberWrapperBean, IThingDataCallback<MemberBean> callback)
Adding a new member to a family (recommend). abstract void
removeMember(long memberId, IResultCallback callback)
Remove a member from the family to which he belongs. abstract void
queryMemberList(long mHomeId, IThingGetMemberListCallback callback)
Search for members under the current family. abstract void
getMemberDeviceList(long relationId, IThingDataCallback<Map<String, Object>> callback)
Get family members' associated devices. abstract void
getAuthRoomList(long homeId, long memberId, IThingDataCallback<List<RoomAuthBean>> callback)
Get the authorization status of the specified family members for the rooms under the current family. abstract void
saveAuthRoomList(long homeId, long memberId, List<Long> rooms, IResultCallback callback)
Save the authorization of a family member for rooms under the current family. abstract void
getAuthSceneList(long homeId, long memberId, IThingDataCallback<List<SceneAuthBean>> callback)
Get the authorization status of the specified family members for the scenes under the current family. abstract void
saveAuthSceneList(long homeId, long memberId, List<String> ruleIds, IResultCallback callback)
Save the authorization of a family member for scenes under the current family. abstract void
addMemberAccount(long id, String countryCode, String userAccount, boolean admin, IResultCallback callback)
Associate account for family member. abstract void
addMemberAccount(long id, String countryCode, String userAccount, int role, IResultCallback callback)
Associate account for family member (recommend). abstract void
addMemberAccount(long memberId, String countryCode, String userAccount, int role, Long customRoleId, IResultCallback callback)
Associate account for family member with role(recommend). abstract void
uploadMemberAvatar(String filename, File file, IBooleanCallback callback)
Upload the avatar information of family members. abstract void
processInvitation(long homeId, boolean action, IResultCallback callBack)
Accept or reject family invitation. abstract void
getInvitationMessage(long homeId, IThingDataCallback callback)
Get sharing invitation information. abstract void
getInvitationMessage(long homeId, int role, Long customRoleId, IThingDataCallback callback)
Get sharing invitation information. abstract void
getInvitationFamilyInfo(String inviteCode, IThingDataCallback callback)
Get information about the family to which the current invitation code belongs. abstract void
reInviteMember(long invitationId, IThingDataCallback callback)
Re-invite the family member. abstract void
cancelMemberInvitationCode(long invitationId, IResultCallback callback)
Cancel the invitation of family member. abstract void
getInvitationList(long homeId, IThingDataCallback callback)
Get Family Invitation Records. abstract void
updateInvitedMember(long invitationId, String memberName, int memberRole, IResultCallback callBack)
Update information of invited member abstract void
updateInvitedMember(long invitationId, String memberName, int memberRole, Long customRoleId, IResultCallback callBack)
Update information of invited member abstract void
transferOwner(long gid, long memberId, IResultCallback listener)
家庭所有者转移权限 -
-
Method Detail
-
updateMember
abstract void updateMember(long memberId, String name, boolean admin, IResultCallback callback)
Update family members' note names and permissions (old method).
- Parameters:
name
- Remarksadmin
- Set to true if he is an administrator.callback
- Result callback
-
updateMember
abstract void updateMember(MemberWrapperBean memberWrapperBean, IResultCallback callback)
Update member's information (recommend).if want to update member name,please use updateMemberName
- Parameters:
memberWrapperBean
- New information for family member.callback
- Result callback
-
updateMemberName
abstract void updateMemberName(long memberId, String name, IResultCallback callback)
Update family members' note names
- Parameters:
memberId
- member's idname
- member's name
-
updateMemberRole
abstract void updateMemberRole(long memberId, boolean admin, IResultCallback callback)
Update family member's role.
- Parameters:
admin
- Set to true if he is an administratorcallback
- Result callback
-
addMember
abstract void addMember(long mHomeId, String countryCode, String userAccount, String name, boolean admin, IThingMemberResultCallback callback)
Adding a new member to a family (old).
- Parameters:
countryCode
- Country identificationuserAccount
- Account info of a username
- Remark name of the member in this familyadmin
- Set to true if he is an administratorcallback
- Result callback
-
addMember
abstract void addMember(MemberWrapperBean memberWrapperBean, IThingDataCallback<MemberBean> callback)
Adding a new member to a family (recommend).
- Parameters:
memberWrapperBean
- Simple packaging of member information MemberWrapperBeancallback
- Result callback
-
removeMember
abstract void removeMember(long memberId, IResultCallback callback)
Remove a member from the family to which he belongs.
- Parameters:
memberId
- Member identificationcallback
- Result callback
-
queryMemberList
abstract void queryMemberList(long mHomeId, IThingGetMemberListCallback callback)
Search for members under the current family.
- Parameters:
callback
- Result callback, see returns data format from MemberBean
-
getMemberDeviceList
abstract void getMemberDeviceList(long relationId, IThingDataCallback<Map<String, Object>> callback)
Get family members' associated devices.
- Parameters:
relationId
- Member identificationcallback
- Result callback, device map, now only support `jjaf` type devices
-
getAuthRoomList
abstract void getAuthRoomList(long homeId, long memberId, IThingDataCallback<List<RoomAuthBean>> callback)
Get the authorization status of the specified family members for the rooms under the current family.
- Parameters:
homeId
- Home identificationmemberId
- Member identificationcallback
- Result callback, returns each room's auth status.
-
saveAuthRoomList
abstract void saveAuthRoomList(long homeId, long memberId, List<Long> rooms, IResultCallback callback)
Save the authorization of a family member for rooms under the current family.
- Parameters:
homeId
- Home identificationmemberId
- Member identificationrooms
- List of rooms you wish to authorize or deauthorize, each item in list should be the id of room.callback
- Result callback
-
getAuthSceneList
abstract void getAuthSceneList(long homeId, long memberId, IThingDataCallback<List<SceneAuthBean>> callback)
Get the authorization status of the specified family members for the scenes under the current family.
- Parameters:
homeId
- Home identificationmemberId
- Member identificationcallback
- Result callback, returns each room's auth status.
-
saveAuthSceneList
abstract void saveAuthSceneList(long homeId, long memberId, List<String> ruleIds, IResultCallback callback)
Save the authorization of a family member for scenes under the current family.
- Parameters:
homeId
- Home identificationmemberId
- Member identificationruleIds
- List of rules you wish to authorize or deauthorize, each item in list should be the id of scene.callback
- Result callback
-
addMemberAccount
abstract void addMemberAccount(long id, String countryCode, String userAccount, boolean admin, IResultCallback callback)
Associate account for family member.
- Parameters:
id
- Member identificationcountryCode
- Country identificationuserAccount
- Desired associated accountadmin
- Set to true if he is an administratorcallback
- Result callback
-
addMemberAccount
abstract void addMemberAccount(long id, String countryCode, String userAccount, int role, IResultCallback callback)
Associate account for family member (recommend).
- Parameters:
id
- Member identificationcountryCode
- Country identificationuserAccount
- Desired associated accountrole
- The role of this member in family.callback
- Result callback
-
addMemberAccount
abstract void addMemberAccount(long memberId, String countryCode, String userAccount, int role, Long customRoleId, IResultCallback callback)
Associate account for family member with role(recommend).
- Parameters:
memberId
- Member identificationcountryCode
- Country identificationuserAccount
- Desired associated accountrole
- The role of this member in family.customRoleId
- only use role == MemberRole.callback
- Result callback
-
uploadMemberAvatar
abstract void uploadMemberAvatar(String filename, File file, IBooleanCallback callback)
Upload the avatar information of family members.
- Parameters:
filename
- The image file namefile
- The image file infocallback
- Result callback
-
processInvitation
abstract void processInvitation(long homeId, boolean action, IResultCallback callBack)
Accept or reject family invitation.
- Parameters:
homeId
- Home identificationaction
- Set true if accept, or false when reject invitation.callBack
- Result callback
-
getInvitationMessage
abstract void getInvitationMessage(long homeId, IThingDataCallback callback)
Get sharing invitation information.
- Parameters:
homeId
- Home identificationcallback
- Result callback
-
getInvitationMessage
abstract void getInvitationMessage(long homeId, int role, Long customRoleId, IThingDataCallback callback)
Get sharing invitation information.
- Parameters:
homeId
- Home identificationrole
- MemberRolecustomRoleId
- only use role == MemberRole.callback
- Result callback
-
getInvitationFamilyInfo
abstract void getInvitationFamilyInfo(String inviteCode, IThingDataCallback callback)
Get information about the family to which the current invitation code belongs.
- Parameters:
inviteCode
- Invitation codecallback
- Result callback
-
reInviteMember
abstract void reInviteMember(long invitationId, IThingDataCallback callback)
Re-invite the family member.
- Parameters:
invitationId
- Invitation record idcallback
- Result callback
-
cancelMemberInvitationCode
abstract void cancelMemberInvitationCode(long invitationId, IResultCallback callback)
Cancel the invitation of family member.
- Parameters:
invitationId
- Invitation record idcallback
- Result callback
-
getInvitationList
abstract void getInvitationList(long homeId, IThingDataCallback callback)
Get Family Invitation Records.
- Parameters:
homeId
- Home identificationcallback
- Result callback
-
updateInvitedMember
abstract void updateInvitedMember(long invitationId, String memberName, int memberRole, IResultCallback callBack)
Update information of invited member
- Parameters:
invitationId
- Invitation IDmemberName
- Remark name of invited membermemberRole
- Role of invited membercallBack
- Result callback
-
updateInvitedMember
abstract void updateInvitedMember(long invitationId, String memberName, int memberRole, Long customRoleId, IResultCallback callBack)
Update information of invited member
- Parameters:
invitationId
- Invitation IDmemberName
- Remark name of invited membermemberRole
- Role of invited membercustomRoleId
- only use role == MemberRole.callBack
- Result callback
-
transferOwner
abstract void transferOwner(long gid, long memberId, IResultCallback listener)
家庭所有者转移权限
- Parameters:
gid
- 家庭idmemberId
- 新的家庭所有者id
-
-
-
-