Class UserInfo

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UserInfo.Serializer
      For internal use only.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String accountId  
      protected java.lang.String displayName  
      protected java.lang.String email  
      protected boolean sameTeam  
      protected java.lang.String teamMemberId  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserInfo​(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam)
      Basic information about a user.
      UserInfo​(java.lang.String accountId, java.lang.String email, java.lang.String displayName, boolean sameTeam, java.lang.String teamMemberId)
      Basic information about a user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getAccountId()
      The account ID of the user.
      java.lang.String getDisplayName()
      The display name of the user.
      java.lang.String getEmail()
      Email address of user.
      boolean getSameTeam()
      If the user is in the same team as current user.
      java.lang.String getTeamMemberId()
      The team member ID of the shared folder member.
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • accountId

        protected final java.lang.String accountId
      • email

        protected final java.lang.String email
      • displayName

        protected final java.lang.String displayName
      • sameTeam

        protected final boolean sameTeam
      • teamMemberId

        protected final java.lang.String teamMemberId
    • Constructor Detail

      • UserInfo

        public UserInfo​(java.lang.String accountId,
                        java.lang.String email,
                        java.lang.String displayName,
                        boolean sameTeam,
                        java.lang.String teamMemberId)
        Basic information about a user. Use DbxUserUsersRequests.getAccount(String) and DbxUserUsersRequests.getAccountBatch(java.util.List) to obtain more detailed information.
        Parameters:
        accountId - The account ID of the user. Must have length of at least 40, have length of at most 40, and not be null.
        email - Email address of user. Must not be null.
        displayName - The display name of the user. Must not be null.
        sameTeam - If the user is in the same team as current user.
        teamMemberId - The team member ID of the shared folder member. Only present if getSameTeam() is true.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • UserInfo

        public UserInfo​(java.lang.String accountId,
                        java.lang.String email,
                        java.lang.String displayName,
                        boolean sameTeam)
        Basic information about a user. Use DbxUserUsersRequests.getAccount(String) and DbxUserUsersRequests.getAccountBatch(java.util.List) to obtain more detailed information.

        The default values for unset fields will be used.

        Parameters:
        accountId - The account ID of the user. Must have length of at least 40, have length of at most 40, and not be null.
        email - Email address of user. Must not be null.
        displayName - The display name of the user. Must not be null.
        sameTeam - If the user is in the same team as current user.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getAccountId

        public java.lang.String getAccountId()
        The account ID of the user.
        Returns:
        value for this field, never null.
      • getEmail

        public java.lang.String getEmail()
        Email address of user.
        Returns:
        value for this field, never null.
      • getDisplayName

        public java.lang.String getDisplayName()
        The display name of the user.
        Returns:
        value for this field, never null.
      • getSameTeam

        public boolean getSameTeam()
        If the user is in the same team as current user.
        Returns:
        value for this field.
      • getTeamMemberId

        public java.lang.String getTeamMemberId()
        The team member ID of the shared folder member. Only present if getSameTeam() is true.
        Returns:
        value for this field, or null if not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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