Package 

Interface IThingHomeMember


  • 
    public interface IThingHomeMember
    
                        

    Provide the ability to manage family members.

    • 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 - Remarks
        admin - 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 id
        name - 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 administrator
        callback - 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 identification
        userAccount - Account info of a user
        name - Remark name of the member in this family
        admin - Set to true if he is an administrator
        callback - Result callback
      • removeMember

         abstract void removeMember(long memberId, IResultCallback callback)

        Remove a member from the family to which he belongs.

        Parameters:
        memberId - Member identification
        callback - Result callback
      • getMemberDeviceList

         abstract void getMemberDeviceList(long relationId, IThingDataCallback<Map<String, Object>> callback)

        Get family members' associated devices.

        Parameters:
        relationId - Member identification
        callback - 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 identification
        memberId - Member identification
        callback - 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 identification
        memberId - Member identification
        rooms - 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 identification
        memberId - Member identification
        callback - 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 identification
        memberId - Member identification
        ruleIds - 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 identification
        countryCode - Country identification
        userAccount - Desired associated account
        admin - Set to true if he is an administrator
        callback - 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 identification
        countryCode - Country identification
        userAccount - Desired associated account
        role - 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 identification
        countryCode - Country identification
        userAccount - Desired associated account
        role - 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 name
        file - The image file info
        callback - Result callback
      • processInvitation

         abstract void processInvitation(long homeId, boolean action, IResultCallback callBack)

        Accept or reject family invitation.

        Parameters:
        homeId - Home identification
        action - 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 identification
        callback - Result callback
      • getInvitationMessage

         abstract void getInvitationMessage(long homeId, int role, Long customRoleId, IThingDataCallback callback)

        Get sharing invitation information.

        Parameters:
        homeId - Home identification
        role - MemberRole
        customRoleId - 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 code
        callback - Result callback
      • reInviteMember

         abstract void reInviteMember(long invitationId, IThingDataCallback callback)

        Re-invite the family member.

        Parameters:
        invitationId - Invitation record id
        callback - Result callback
      • cancelMemberInvitationCode

         abstract void cancelMemberInvitationCode(long invitationId, IResultCallback callback)

        Cancel the invitation of family member.

        Parameters:
        invitationId - Invitation record id
        callback - Result callback
      • getInvitationList

         abstract void getInvitationList(long homeId, IThingDataCallback callback)

        Get Family Invitation Records.

        Parameters:
        homeId - Home identification
        callback - Result callback
      • updateInvitedMember

         abstract void updateInvitedMember(long invitationId, String memberName, int memberRole, IResultCallback callBack)

        Update information of invited member

        Parameters:
        invitationId - Invitation ID
        memberName - Remark name of invited member
        memberRole - Role of invited member
        callBack - Result callback
      • updateInvitedMember

         abstract void updateInvitedMember(long invitationId, String memberName, int memberRole, Long customRoleId, IResultCallback callBack)

        Update information of invited member

        Parameters:
        invitationId - Invitation ID
        memberName - Remark name of invited member
        memberRole - Role of invited member
        customRoleId - only use role == MemberRole.
        callBack - Result callback
      • transferOwner

         abstract void transferOwner(long gid, long memberId, IResultCallback listener)

        家庭所有者转移权限

        Parameters:
        gid - 家庭id
        memberId - 新的家庭所有者id