Package com.dropbox.core.v2.sharing
Class SharedFileMembers
- java.lang.Object
-
- com.dropbox.core.v2.sharing.SharedFileMembers
-
public class SharedFileMembers extends java.lang.Object
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)
.
-
-
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<UserFileMembershipInfo>
users
-
Constructor Summary
Constructors Constructor Description SharedFileMembers(java.util.List<UserFileMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.List<InviteeMembershipInfo> invitees)
Shared file user, group, and invitee membership.SharedFileMembers(java.util.List<UserFileMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.List<InviteeMembershipInfo> invitees, java.lang.String cursor)
Shared file user, group, and invitee 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 file members that have not been returned yet.java.util.List<GroupMembershipInfo>
getGroups()
The list of group members of the shared file.java.util.List<InviteeMembershipInfo>
getInvitees()
The list of invited members of a file, but have not logged in and claimed this.java.util.List<UserFileMembershipInfo>
getUsers()
The list of user members of the shared file.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
users
protected final java.util.List<UserFileMembershipInfo> users
-
groups
protected final java.util.List<GroupMembershipInfo> groups
-
invitees
protected final java.util.List<InviteeMembershipInfo> invitees
-
cursor
protected final java.lang.String cursor
-
-
Constructor Detail
-
SharedFileMembers
public SharedFileMembers(java.util.List<UserFileMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.List<InviteeMembershipInfo> invitees, java.lang.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 anull
item and not benull
.groups
- The list of group members of the shared file. Must not contain anull
item and not benull
.invitees
- The list of invited members of a file, but have not logged in and claimed this. Must not contain anull
item 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:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
SharedFileMembers
public SharedFileMembers(java.util.List<UserFileMembershipInfo> users, java.util.List<GroupMembershipInfo> groups, java.util.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 anull
item and not benull
.groups
- The list of group members of the shared file. Must not contain anull
item and not benull
.invitees
- The list of invited members of a file, but have not logged in and claimed this. Must not contain anull
item and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getUsers
public java.util.List<UserFileMembershipInfo> getUsers()
The list of user members of the shared file.- Returns:
- value for this field, never
null
.
-
getGroups
public java.util.List<GroupMembershipInfo> getGroups()
The list of group members of the shared file.- Returns:
- value for this field, never
null
.
-
getInvitees
public java.util.List<InviteeMembershipInfo> 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
public java.lang.String 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
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
-
-