Class MobileClientSession


  • public class MobileClientSession
    extends DeviceSession
    Information about linked Dropbox mobile client sessions.
    • Field Detail

      • deviceName

        @Nonnull
        protected final java.lang.String deviceName
      • clientVersion

        @Nullable
        protected final java.lang.String clientVersion
      • osVersion

        @Nullable
        protected final java.lang.String osVersion
      • lastCarrier

        @Nullable
        protected final java.lang.String lastCarrier
    • Constructor Detail

      • MobileClientSession

        public MobileClientSession​(@Nonnull
                                   java.lang.String sessionId,
                                   @Nonnull
                                   java.lang.String deviceName,
                                   @Nonnull
                                   MobileClientPlatform clientType,
                                   @Nullable
                                   java.lang.String ipAddress,
                                   @Nullable
                                   java.lang.String country,
                                   @Nullable
                                   java.util.Date created,
                                   @Nullable
                                   java.util.Date updated,
                                   @Nullable
                                   java.lang.String clientVersion,
                                   @Nullable
                                   java.lang.String osVersion,
                                   @Nullable
                                   java.lang.String lastCarrier)
        Information about linked Dropbox mobile client sessions.

        Use newBuilder(java.lang.String,java.lang.String,com.dropbox.core.v2.team.MobileClientPlatform) to create instances of this class without specifying values for all optional fields.

        Parameters:
        sessionId - The session id. Must not be null.
        deviceName - The device name. Must not be null.
        clientType - The mobile application type. Must not be null.
        ipAddress - The IP address of the last activity from this session.
        country - The country from which the last activity from this session was made.
        created - The time this session was created.
        updated - The time of the last activity from this session.
        clientVersion - The dropbox client version.
        osVersion - The hosting OS version.
        lastCarrier - last carrier used by the device.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • MobileClientSession

        public MobileClientSession​(@Nonnull
                                   java.lang.String sessionId,
                                   @Nonnull
                                   java.lang.String deviceName,
                                   @Nonnull
                                   MobileClientPlatform clientType)
        Information about linked Dropbox mobile client sessions.

        The default values for unset fields will be used.

        Parameters:
        sessionId - The session id. Must not be null.
        deviceName - The device name. Must not be null.
        clientType - The mobile application type. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getSessionId

        @Nonnull
        public java.lang.String getSessionId()
        The session id.
        Overrides:
        getSessionId in class DeviceSession
        Returns:
        value for this field, never null.
      • getDeviceName

        @Nonnull
        public java.lang.String getDeviceName()
        The device name.
        Returns:
        value for this field, never null.
      • getClientType

        @Nonnull
        public MobileClientPlatform getClientType()
        The mobile application type.
        Returns:
        value for this field, never null.
      • getIpAddress

        @Nullable
        public java.lang.String getIpAddress()
        The IP address of the last activity from this session.
        Overrides:
        getIpAddress in class DeviceSession
        Returns:
        value for this field, or null if not present.
      • getCountry

        @Nullable
        public java.lang.String getCountry()
        The country from which the last activity from this session was made.
        Overrides:
        getCountry in class DeviceSession
        Returns:
        value for this field, or null if not present.
      • getCreated

        @Nullable
        public java.util.Date getCreated()
        The time this session was created.
        Overrides:
        getCreated in class DeviceSession
        Returns:
        value for this field, or null if not present.
      • getUpdated

        @Nullable
        public java.util.Date getUpdated()
        The time of the last activity from this session.
        Overrides:
        getUpdated in class DeviceSession
        Returns:
        value for this field, or null if not present.
      • getClientVersion

        @Nullable
        public java.lang.String getClientVersion()
        The dropbox client version.
        Returns:
        value for this field, or null if not present.
      • getOsVersion

        @Nullable
        public java.lang.String getOsVersion()
        The hosting OS version.
        Returns:
        value for this field, or null if not present.
      • getLastCarrier

        @Nullable
        public java.lang.String getLastCarrier()
        last carrier used by the device.
        Returns:
        value for this field, or null if not present.
      • newBuilder

        public static MobileClientSession.Builder newBuilder​(java.lang.String sessionId,
                                                             java.lang.String deviceName,
                                                             MobileClientPlatform clientType)
        Returns a new builder for creating an instance of this class.
        Parameters:
        sessionId - The session id. Must not be null.
        deviceName - The device name. Must not be null.
        clientType - The mobile application type. Must not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • equals

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

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Overrides:
        toStringMultiline in class DeviceSession
        Returns:
        Formatted, multiline String representation of this object