Class MemberDevices

java.lang.Object
com.dropbox.core.v2.team.MemberDevices

public class MemberDevices extends Object
Information on devices of a team's member.
  • Field Details

  • Constructor Details

    • MemberDevices

      public MemberDevices(@Nonnull String teamMemberId, @Nullable List<ActiveWebSession> webSessions, @Nullable List<DesktopClientSession> desktopClients, @Nullable List<MobileClientSession> mobileClients)
      Information on devices of a team's member.

      Use newBuilder(java.lang.String) to create instances of this class without specifying values for all optional fields.

      Parameters:
      teamMemberId - The member unique Id. Must not be null.
      webSessions - List of web sessions made by this team member. Must not contain a null item.
      desktopClients - List of desktop clients by this team member. Must not contain a null item.
      mobileClients - List of mobile clients by this team member. Must not contain a null item.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • MemberDevices

      public MemberDevices(@Nonnull String teamMemberId)
      Information on devices of a team's member.

      The default values for unset fields will be used.

      Parameters:
      teamMemberId - The member unique Id. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getTeamMemberId

      @Nonnull public String getTeamMemberId()
      The member unique Id.
      Returns:
      value for this field, never null.
    • getWebSessions

      @Nullable public List<ActiveWebSession> getWebSessions()
      List of web sessions made by this team member.
      Returns:
      value for this field, or null if not present.
    • getDesktopClients

      @Nullable public List<DesktopClientSession> getDesktopClients()
      List of desktop clients by this team member.
      Returns:
      value for this field, or null if not present.
    • getMobileClients

      @Nullable public List<MobileClientSession> getMobileClients()
      List of mobile clients by this team member.
      Returns:
      value for this field, or null if not present.
    • newBuilder

      public static MemberDevices.Builder newBuilder(String teamMemberId)
      Returns a new builder for creating an instance of this class.
      Parameters:
      teamMemberId - The member unique Id. Must not be null.
      Returns:
      builder for this class.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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