Package com.dropbox.core.v2.sharing
Class SharedFileMembers
java.lang.Object
com.dropbox.core.v2.sharing.SharedFileMembers
Shared file user, group, and invitee membership. Used for the results of
DbxUserSharingRequests.listFileMembers(String) and DbxUserSharingRequests.listFileMembersContinue(String), and used as part of
the results for DbxUserSharingRequests.listFileMembersBatch(List,long).-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final List<GroupMembershipInfo> protected final List<InviteeMembershipInfo> protected final List<UserFileMembershipInfo> -
Constructor Summary
ConstructorsConstructorDescriptionSharedFileMembers(List<UserFileMembershipInfo> users, List<GroupMembershipInfo> groups, List<InviteeMembershipInfo> invitees) Shared file user, group, and invitee membership.SharedFileMembers(List<UserFileMembershipInfo> users, List<GroupMembershipInfo> groups, List<InviteeMembershipInfo> invitees, String cursor) Shared file user, group, and invitee membership. -
Method Summary
Modifier and TypeMethodDescriptionbooleanPresent if there are additional shared file members that have not been returned yet.The list of group members of the shared file.The list of invited members of a file, but have not logged in and claimed this.getUsers()The list of user members of the shared file.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
users
-
groups
-
invitees
-
cursor
-
-
Constructor Details
-
SharedFileMembers
public SharedFileMembers(@Nonnull List<UserFileMembershipInfo> users, @Nonnull List<GroupMembershipInfo> groups, @Nonnull List<InviteeMembershipInfo> invitees, @Nullable String cursor) Shared file user, group, and invitee membership. Used for the results ofDbxUserSharingRequests.listFileMembers(String)andDbxUserSharingRequests.listFileMembersContinue(String), and used as part of the results forDbxUserSharingRequests.listFileMembersBatch(List,long).- Parameters:
users- The list of user members of the shared file. Must not contain anullitem and not benull.groups- The list of group members of the shared file. Must not contain anullitem and not benull.invitees- The list of invited members of a file, but have not logged in and claimed this. Must not contain anullitem and not benull.cursor- Present if there are additional shared file members that have not been returned yet. Pass the cursor intoDbxUserSharingRequests.listFileMembersContinue(String)to list additional members.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
SharedFileMembers
public SharedFileMembers(@Nonnull List<UserFileMembershipInfo> users, @Nonnull List<GroupMembershipInfo> groups, @Nonnull List<InviteeMembershipInfo> invitees) Shared file user, group, and invitee membership. Used for the results ofDbxUserSharingRequests.listFileMembers(String)andDbxUserSharingRequests.listFileMembersContinue(String), and used as part of the results forDbxUserSharingRequests.listFileMembersBatch(List,long).The default values for unset fields will be used.
- Parameters:
users- The list of user members of the shared file. Must not contain anullitem and not benull.groups- The list of group members of the shared file. Must not contain anullitem and not benull.invitees- The list of invited members of a file, but have not logged in and claimed this. Must not contain anullitem and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getUsers
The list of user members of the shared file.- Returns:
- value for this field, never
null.
-
getGroups
The list of group members of the shared file.- Returns:
- value for this field, never
null.
-
getInvitees
The list of invited members of a file, but have not logged in and claimed this.- Returns:
- value for this field, never
null.
-
getCursor
Present if there are additional shared file members that have not been returned yet. Pass the cursor intoDbxUserSharingRequests.listFileMembersContinue(String)to list additional members.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-