Class MobileDeviceSessionLogInfo

java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
com.dropbox.core.v2.teamlog.MobileDeviceSessionLogInfo

public class MobileDeviceSessionLogInfo extends DeviceSessionLogInfo
Information about linked Dropbox mobile client sessions
  • Field Details

    • sessionInfo

      @Nullable protected final MobileSessionLogInfo sessionInfo
    • deviceName

      @Nonnull protected final String deviceName
    • clientType

      @Nonnull protected final MobileClientPlatform clientType
    • clientVersion

      @Nullable protected final String clientVersion
    • osVersion

      @Nullable protected final String osVersion
    • lastCarrier

      @Nullable protected final String lastCarrier
  • Constructor Details

    • MobileDeviceSessionLogInfo

      public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType, @Nullable String ipAddress, @Nullable Date created, @Nullable Date updated, @Nullable MobileSessionLogInfo sessionInfo, @Nullable String clientVersion, @Nullable String osVersion, @Nullable String lastCarrier)
      Information about linked Dropbox mobile client sessions

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

      Parameters:
      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.
      created - The time this session was created.
      updated - The time of the last activity from this session.
      sessionInfo - Mobile session unique id.
      clientVersion - The Dropbox client version.
      osVersion - The hosting OS version.
      lastCarrier - last carrier used by the device.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
    • MobileDeviceSessionLogInfo

      public MobileDeviceSessionLogInfo(@Nonnull String deviceName, @Nonnull MobileClientPlatform clientType)
      Information about linked Dropbox mobile client sessions

      The default values for unset fields will be used.

      Parameters:
      deviceName - The device name. Must not be null.
      clientType - The mobile application type. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getDeviceName

      @Nonnull public 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 String getIpAddress()
      The IP address of the last activity from this session.
      Overrides:
      getIpAddress in class DeviceSessionLogInfo
      Returns:
      value for this field, or null if not present.
    • getCreated

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

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

      @Nullable public MobileSessionLogInfo getSessionInfo()
      Mobile session unique id.
      Returns:
      value for this field, or null if not present.
    • getClientVersion

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

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

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

      public static MobileDeviceSessionLogInfo.Builder newBuilder(String deviceName, MobileClientPlatform clientType)
      Returns a new builder for creating an instance of this class.
      Parameters:
      deviceName - The device name. Must not be null.
      clientType - The mobile application type. 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 DeviceSessionLogInfo
    • equals

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

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

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

      The returned String may contain newlines.

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