Package com.dropbox.core.v2.team
Class MemberDevices
- java.lang.Object
-
- com.dropbox.core.v2.team.MemberDevices
-
public class MemberDevices extends java.lang.Object
Information on devices of a team's member.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MemberDevices.Builder
Builder forMemberDevices
.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<DesktopClientSession>
desktopClients
protected java.util.List<MobileClientSession>
mobileClients
protected java.lang.String
teamMemberId
protected java.util.List<ActiveWebSession>
webSessions
-
Constructor Summary
Constructors Constructor Description MemberDevices(java.lang.String teamMemberId)
Information on devices of a team's member.MemberDevices(java.lang.String teamMemberId, java.util.List<ActiveWebSession> webSessions, java.util.List<DesktopClientSession> desktopClients, java.util.List<MobileClientSession> mobileClients)
Information on devices of a team's member.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<DesktopClientSession>
getDesktopClients()
List of desktop clients by this team member.java.util.List<MobileClientSession>
getMobileClients()
List of mobile clients by this team member.java.lang.String
getTeamMemberId()
The member unique Id.java.util.List<ActiveWebSession>
getWebSessions()
List of web sessions made by this team member.int
hashCode()
static MemberDevices.Builder
newBuilder(java.lang.String teamMemberId)
Returns a new builder for creating an instance of this class.java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Field Detail
-
teamMemberId
protected final java.lang.String teamMemberId
-
webSessions
protected final java.util.List<ActiveWebSession> webSessions
-
desktopClients
protected final java.util.List<DesktopClientSession> desktopClients
-
mobileClients
protected final java.util.List<MobileClientSession> mobileClients
-
-
Constructor Detail
-
MemberDevices
public MemberDevices(java.lang.String teamMemberId, java.util.List<ActiveWebSession> webSessions, java.util.List<DesktopClientSession> desktopClients, java.util.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 benull
.webSessions
- List of web sessions made by this team member. Must not contain anull
item.desktopClients
- List of desktop clients by this team member. Must not contain anull
item.mobileClients
- List of mobile clients by this team member. Must not contain anull
item.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
MemberDevices
public MemberDevices(java.lang.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 benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getTeamMemberId
public java.lang.String getTeamMemberId()
The member unique Id.- Returns:
- value for this field, never
null
.
-
getWebSessions
public java.util.List<ActiveWebSession> getWebSessions()
List of web sessions made by this team member.- Returns:
- value for this field, or
null
if not present.
-
getDesktopClients
public java.util.List<DesktopClientSession> getDesktopClients()
List of desktop clients by this team member.- Returns:
- value for this field, or
null
if not present.
-
getMobileClients
public java.util.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(java.lang.String teamMemberId)
Returns a new builder for creating an instance of this class.- Parameters:
teamMemberId
- The member unique Id. Must not benull
.- Returns:
- builder for this class.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
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
-
-