Package com.dropbox.core.v2.sharing
Class SharedFolderMembers
- java.lang.Object
-
- com.dropbox.core.v2.sharing.SharedFolderMembers
-
public class SharedFolderMembers extends java.lang.Object
Shared folder user and group membership.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
cursor
protected java.util.List<GroupMembershipInfo>
groups
protected java.util.List<InviteeMembershipInfo>
invitees
protected java.util.List<UserMembershipInfo>
users
-
Constructor Summary
Constructors Constructor Description SharedFolderMembers(java.util.List<UserMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.List<InviteeMembershipInfo> invitees)
Shared folder user and group membership.SharedFolderMembers(java.util.List<UserMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.List<InviteeMembershipInfo> invitees, java.lang.String cursor)
Shared folder user and group membership.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCursor()
Present if there are additional shared folder members that have not been returned yet.java.util.List<GroupMembershipInfo>
getGroups()
The list of group members of the shared folder.java.util.List<InviteeMembershipInfo>
getInvitees()
The list of invitees to the shared folder.java.util.List<UserMembershipInfo>
getUsers()
The list of user members of the shared folder.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
users
@Nonnull protected final java.util.List<UserMembershipInfo> users
-
groups
@Nonnull protected final java.util.List<GroupMembershipInfo> groups
-
invitees
@Nonnull protected final java.util.List<InviteeMembershipInfo> invitees
-
cursor
@Nullable protected final java.lang.String cursor
-
-
Constructor Detail
-
SharedFolderMembers
public SharedFolderMembers(@Nonnull java.util.List<UserMembershipInfo> users, @Nonnull java.util.List<GroupMembershipInfo> groups, @Nonnull java.util.List<InviteeMembershipInfo> invitees, @Nullable java.lang.String cursor)
Shared folder user and group membership.- Parameters:
users
- The list of user members of the shared folder. Must not contain anull
item and not benull
.groups
- The list of group members of the shared folder. Must not contain anull
item and not benull
.invitees
- The list of invitees to the shared folder. Must not contain anull
item and not benull
.cursor
- Present if there are additional shared folder members that have not been returned yet. Pass the cursor intoDbxUserSharingRequests.listFolderMembersContinue(String)
to list additional members.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
SharedFolderMembers
public SharedFolderMembers(@Nonnull java.util.List<UserMembershipInfo> users, @Nonnull java.util.List<GroupMembershipInfo> groups, @Nonnull java.util.List<InviteeMembershipInfo> invitees)
Shared folder user and group membership.The default values for unset fields will be used.
- Parameters:
users
- The list of user members of the shared folder. Must not contain anull
item and not benull
.groups
- The list of group members of the shared folder. Must not contain anull
item and not benull
.invitees
- The list of invitees to the shared folder. Must not contain anull
item and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getUsers
@Nonnull public java.util.List<UserMembershipInfo> getUsers()
The list of user members of the shared folder.- Returns:
- value for this field, never
null
.
-
getGroups
@Nonnull public java.util.List<GroupMembershipInfo> getGroups()
The list of group members of the shared folder.- Returns:
- value for this field, never
null
.
-
getInvitees
@Nonnull public java.util.List<InviteeMembershipInfo> getInvitees()
The list of invitees to the shared folder.- Returns:
- value for this field, never
null
.
-
getCursor
@Nullable public java.lang.String getCursor()
Present if there are additional shared folder members that have not been returned yet. Pass the cursor intoDbxUserSharingRequests.listFolderMembersContinue(String)
to list additional members.- Returns:
- value for this field, or
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringMultiline
public java.lang.String 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
-
-