Package com.dropbox.core.v2.sharing
Class UserFileMembershipInfo
java.lang.Object
com.dropbox.core.v2.sharing.MembershipInfo
com.dropbox.core.v2.sharing.UserMembershipInfo
com.dropbox.core.v2.sharing.UserFileMembershipInfo
The information about a user member of the shared content with an appended
last seen timestamp.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfo
userFields inherited from class com.dropbox.core.v2.sharing.MembershipInfo
accessType, initials, isInherited, permissions -
Constructor Summary
ConstructorsConstructorDescriptionUserFileMembershipInfo(AccessLevel accessType, UserInfo user) The information about a user member of the shared content with an appended last seen timestamp.UserFileMembershipInfo(AccessLevel accessType, UserInfo user, List<MemberPermission> permissions, String initials, boolean isInherited, Date timeLastSeen, PlatformType platformType) The information about a user member of the shared content with an appended last seen timestamp. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe access type for this member.Deprecated.booleanTrue if the member has access on a parent folder.The permissions that requesting user has on this member.The platform on which the user has last seen the content, or unknown.The UTC timestamp of when the user has last seen the content.getUser()The account information for the membership user.inthashCode()newBuilder(AccessLevel accessType, UserInfo user) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.sharing.MembershipInfo
newBuilder
-
Field Details
-
timeLastSeen
-
platformType
-
-
Constructor Details
-
UserFileMembershipInfo
public UserFileMembershipInfo(@Nonnull AccessLevel accessType, @Nonnull UserInfo user, @Nullable List<MemberPermission> permissions, @Nullable String initials, boolean isInherited, @Nullable Date timeLastSeen, @Nullable PlatformType platformType) The information about a user member of the shared content with an appended last seen timestamp.Use
newBuilder(com.dropbox.core.v2.sharing.AccessLevel,com.dropbox.core.v2.sharing.UserInfo)to create instances of this class without specifying values for all optional fields.- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.user- The account information for the membership user. Must not benull.permissions- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain anullitem.initials- Field is deprecated. Never set.isInherited- True if the member has access on a parent folder.timeLastSeen- The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.platformType- The platform on which the user has last seen the content, or unknown.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
UserFileMembershipInfo
The information about a user member of the shared content with an appended last seen timestamp.The default values for unset fields will be used.
- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.user- The account information for the membership user. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAccessType
The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Overrides:
getAccessTypein classUserMembershipInfo- Returns:
- value for this field, never
null.
-
getUser
The account information for the membership user.- Overrides:
getUserin classUserMembershipInfo- Returns:
- value for this field, never
null.
-
getPermissions
The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Overrides:
getPermissionsin classUserMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getInitials
Deprecated.Field is deprecated. Never set.- Overrides:
getInitialsin classUserMembershipInfo- Returns:
- value for this field, or
nullif not present.
-
getIsInherited
public boolean getIsInherited()True if the member has access on a parent folder.- Overrides:
getIsInheritedin classUserMembershipInfo- Returns:
- value for this field, or
nullif not present. Defaults to false.
-
getTimeLastSeen
The UTC timestamp of when the user has last seen the content. Only populated if the user has seen the content and the caller has a plan that includes viewer history.- Returns:
- value for this field, or
nullif not present.
-
getPlatformType
The platform on which the user has last seen the content, or unknown.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
accessType- The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not benull.user- The account information for the membership user. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classUserMembershipInfo
-
equals
- Overrides:
equalsin classUserMembershipInfo
-
toString
- Overrides:
toStringin classUserMembershipInfo
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classUserMembershipInfo- Returns:
- Formatted, multiline String representation of this object
-