-
public interface IThingHomeDeviceShare
Provide ability of device sharing.
-
-
Method Summary
Modifier and Type Method Description abstract void
enableDevShare(String devId, long memberId, IResultCallback callback)
Share the device with a user. abstract void
disableDevShare(String devId, long memberId, IResultCallback callback)
Close the sharing to a user's device. abstract void
removeReceivedDevShare(String devId, IResultCallback callback)
Remove received device sharing. abstract void
addShareWithHomeId(long homeId, String countryCode, String userAccount, List<String> devIds, IThingResultCallback<SharedUserInfoBean> callback)
Batch add device sharing with a home (Addendum). abstract void
queryDevShareUserList(String devId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the list of shared users for a device. abstract void
addShare(long homeId, String countryCode, String userAccount, ShareIdBean bean, boolean autoSharing, IThingResultCallback<SharedUserInfoBean> callback)
Share the device with a user. abstract void
addShareWithMemberId(long memberId, List<String> devIds, IResultCallback callback)
Batch add device sharing (Data Append). abstract void
getUserShareInfo(long memberId, IThingResultCallback<ShareSentUserDetailBean> callback)
Get user details of the person being shared. abstract void
getReceivedShareInfo(long memberId, IThingResultCallback<ShareReceivedUserDetailBean> callback)
Get user details of the sharer. abstract void
queryUserShareList(long homeId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the list of users actively shared by the current user. abstract void
queryShareReceivedUserList(IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the shared relationship received by the current user. abstract void
queryShareDevFromInfo(String devId, IThingResultCallback<SharedUserInfoBean> callback)
Get the user information of the owner of the shared device. abstract void
renameShareNickname(long memberId, String name, IResultCallback callback)
Modify the user information of device sharers. abstract void
renameReceivedShareNickname(long memberId, String name, IResultCallback callback)
Modify the user information of the person being shared. abstract void
removeUserShare(long memberId, IResultCallback callback)
Delete a device share that has been shared to a user. abstract void
removeReceivedUserShare(long memberId, IResultCallback callback)
Delete a device that previously received a user's share. abstract void
onDestroy()
Recycling Resources. abstract void
inviteShare(String devId, String userAccount, String countryCode, IThingResultCallback<Integer> callback)
Send a device sharing invitation. abstract void
confirmShareInviteShare(int shareId, IResultCallback callback)
Accepting invitations to share device. abstract void
queryGroupSharedUserList(long groupId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Returns a list of device-sharing users by group ID. abstract void
addShareUserForGroup(long homeId, String countryCode, String userAccount, long groupId, IResultCallback callback)
Shares groups to other users. abstract void
removeGroupShare(long groupId, long memberId, IResultCallback callback)
Removes the device sharing group from a member. -
-
Method Detail
-
enableDevShare
@Deprecated() abstract void enableDevShare(String devId, long memberId, IResultCallback callback)
Share the device with a user.
- Parameters:
devId
- Device identificationmemberId
- User identificationcallback
- Result callback
-
disableDevShare
abstract void disableDevShare(String devId, long memberId, IResultCallback callback)
Close the sharing to a user's device.
- Parameters:
devId
- Device identificationmemberId
- User identificationcallback
- Result callback
-
removeReceivedDevShare
abstract void removeReceivedDevShare(String devId, IResultCallback callback)
Remove received device sharing.
- Parameters:
devId
- Device identificationcallback
- Result callback
-
addShareWithHomeId
abstract void addShareWithHomeId(long homeId, String countryCode, String userAccount, List<String> devIds, IThingResultCallback<SharedUserInfoBean> callback)
Batch add device sharing with a home (Addendum).
- Parameters:
homeId
- Home identificationcountryCode
- Country identificationuserAccount
- The account of a userdevIds
- Batch devicescallback
- Result callback
-
queryDevShareUserList
abstract void queryDevShareUserList(String devId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the list of shared users for a device.
- Parameters:
devId
- Device identificationcallback
- Result callback
-
addShare
abstract void addShare(long homeId, String countryCode, String userAccount, ShareIdBean bean, boolean autoSharing, IThingResultCallback<SharedUserInfoBean> callback)
Share the device with a user. You can customize which devices can be shared.Executing this method will overwrite the previous shared device.
- Parameters:
homeId
- Home identificationcountryCode
- Country identificationuserAccount
- The account of a userbean
- The devices you want to share ShareIdBeanautoSharing
- Whether to support automatic sharingcallback
- Result callback
-
addShareWithMemberId
abstract void addShareWithMemberId(long memberId, List<String> devIds, IResultCallback callback)
Batch add device sharing (Data Append).
- Parameters:
memberId
- User identificationdevIds
- Batch devicescallback
- Result callback
-
getUserShareInfo
abstract void getUserShareInfo(long memberId, IThingResultCallback<ShareSentUserDetailBean> callback)
Get user details of the person being shared.
- Parameters:
memberId
- User identificationcallback
- Result callback ShareSentUserDetailBean
-
getReceivedShareInfo
abstract void getReceivedShareInfo(long memberId, IThingResultCallback<ShareReceivedUserDetailBean> callback)
Get user details of the sharer.
- Parameters:
memberId
- User identificationcallback
- Result callback ShareReceivedUserDetailBean
-
queryUserShareList
abstract void queryUserShareList(long homeId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the list of users actively shared by the current user.
- Parameters:
homeId
- Home identificationcallback
- Result callback SharedUserInfoBean
-
queryShareReceivedUserList
abstract void queryShareReceivedUserList(IThingResultCallback<List<SharedUserInfoBean>> callback)
Get the shared relationship received by the current user.
- Parameters:
callback
- Result callback SharedUserInfoBean
-
queryShareDevFromInfo
abstract void queryShareDevFromInfo(String devId, IThingResultCallback<SharedUserInfoBean> callback)
Get the user information of the owner of the shared device.
- Parameters:
devId
- Device identificationcallback
- Result callback SharedUserInfoBean
-
renameShareNickname
abstract void renameShareNickname(long memberId, String name, IResultCallback callback)
Modify the user information of device sharers.
- Parameters:
memberId
- User identificationname
- New name of sharercallback
- Result callback
-
renameReceivedShareNickname
abstract void renameReceivedShareNickname(long memberId, String name, IResultCallback callback)
Modify the user information of the person being shared.
- Parameters:
memberId
- User identificationname
- New name of the person being sharedcallback
- Result callback
-
removeUserShare
abstract void removeUserShare(long memberId, IResultCallback callback)
Delete a device share that has been shared to a user.
- Parameters:
memberId
- User identificationcallback
- Result callback
-
removeReceivedUserShare
abstract void removeReceivedUserShare(long memberId, IResultCallback callback)
Delete a device that previously received a user's share.
- Parameters:
memberId
- User identificationcallback
- Result callback
-
onDestroy
abstract void onDestroy()
Recycling Resources.
-
inviteShare
abstract void inviteShare(String devId, String userAccount, String countryCode, IThingResultCallback<Integer> callback)
Send a device sharing invitation.
- Parameters:
devId
- The id of the device you want to shareuserAccount
- Account of a usercountryCode
- Country identificationcallback
- Result callback, returns the invitation id
-
confirmShareInviteShare
abstract void confirmShareInviteShare(int shareId, IResultCallback callback)
Accepting invitations to share device.
- Parameters:
shareId
- Invitation id of device sharecallback
- Result callback
-
queryGroupSharedUserList
abstract void queryGroupSharedUserList(long groupId, IThingResultCallback<List<SharedUserInfoBean>> callback)
Returns a list of device-sharing users by group ID. The group ID is displayed on the panel.
- Parameters:
groupId
- Group identificationcallback
- Result callback
-
addShareUserForGroup
abstract void addShareUserForGroup(long homeId, String countryCode, String userAccount, long groupId, IResultCallback callback)
Shares groups to other users.
- Parameters:
homeId
- Home identificationcountryCode
- Country identificationuserAccount
- The account of a usergroupId
- Group identificationcallback
- Result callback
-
removeGroupShare
abstract void removeGroupShare(long groupId, long memberId, IResultCallback callback)
Removes the device sharing group from a member.
- Parameters:
groupId
- Group identificationmemberId
- User identificationcallback
- Result callback
-
-
-
-