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
 
 
 
- 
 public class UserFileMembershipInfo extends UserMembershipInfo The information about a user member of the shared content with an appended last seen timestamp.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUserFileMembershipInfo.BuilderBuilder forUserFileMembershipInfo.
 - 
Field SummaryFields Modifier and Type Field Description protected PlatformTypeplatformTypeprotected java.util.DatetimeLastSeen- 
Fields inherited from class com.dropbox.core.v2.sharing.UserMembershipInfouser
 - 
Fields inherited from class com.dropbox.core.v2.sharing.MembershipInfoaccessType, initials, isInherited, permissions
 
- 
 - 
Constructor SummaryConstructors Constructor Description UserFileMembershipInfo(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, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited, java.util.Date timeLastSeen, PlatformType platformType)The information about a user member of the shared content with an appended last seen timestamp.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessLevelgetAccessType()The access type for this member.java.lang.StringgetInitials()Never set.booleangetIsInherited()True if the member has access from a parent folder.java.util.List<MemberPermission>getPermissions()The permissions that requesting user has on this member.PlatformTypegetPlatformType()The platform on which the user has last seen the content, or unknown.java.util.DategetTimeLastSeen()The UTC timestamp of when the user has last seen the content.UserInfogetUser()The account information for the membership user.inthashCode()static UserFileMembershipInfo.BuildernewBuilder(AccessLevel accessType, UserInfo user)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.- 
Methods inherited from class com.dropbox.core.v2.sharing.MembershipInfonewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
timeLastSeenprotected final java.util.Date timeLastSeen 
 - 
platformTypeprotected final PlatformType platformType 
 
- 
 - 
Constructor Detail- 
UserFileMembershipInfopublic UserFileMembershipInfo(AccessLevel accessType, UserInfo user, java.util.List<MemberPermission> permissions, java.lang.String initials, boolean isInherited, java.util.Date timeLastSeen, 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 be- null.
- user- The account information for the membership user. Must not be- null.
- permissions- The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain a- nullitem.
- initials- Never set.
- isInherited- True if the member has access from 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:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
UserFileMembershipInfopublic UserFileMembershipInfo(AccessLevel accessType, UserInfo user) 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 be- null.
- user- The account information for the membership user. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccessTypepublic AccessLevel getAccessType() The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.- Overrides:
- getAccessTypein class- UserMembershipInfo
- Returns:
- value for this field, never null.
 
 - 
getUserpublic UserInfo getUser() The account information for the membership user.- Overrides:
- getUserin class- UserMembershipInfo
- Returns:
- value for this field, never null.
 
 - 
getPermissionspublic java.util.List<MemberPermission> getPermissions() The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.- Overrides:
- getPermissionsin class- UserMembershipInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getInitialspublic java.lang.String getInitials() Never set.- Overrides:
- getInitialsin class- UserMembershipInfo
- Returns:
- value for this field, or nullif not present.
 
 - 
getIsInheritedpublic boolean getIsInherited() True if the member has access from a parent folder.- Overrides:
- getIsInheritedin class- UserMembershipInfo
- Returns:
- value for this field, or nullif not present. Defaults to false.
 
 - 
getTimeLastSeenpublic java.util.Date 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.
 
 - 
getPlatformTypepublic PlatformType getPlatformType() The platform on which the user has last seen the content, or unknown.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static UserFileMembershipInfo.Builder newBuilder(AccessLevel accessType, UserInfo user) 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 be- null.
- user- The account information for the membership user. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- UserMembershipInfo
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- UserMembershipInfo
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- UserMembershipInfo
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- UserMembershipInfo
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-