Class DeviceSessionLogInfo

java.lang.Object
com.dropbox.core.v2.teamlog.DeviceSessionLogInfo
Direct Known Subclasses:
DesktopDeviceSessionLogInfo, LegacyDeviceSessionLogInfo, MobileDeviceSessionLogInfo, WebDeviceSessionLogInfo

public class DeviceSessionLogInfo extends Object
Device's session logged information.
  • Field Details

    • ipAddress

      @Nullable protected final String ipAddress
    • created

      @Nullable protected final Date created
    • updated

      @Nullable protected final Date updated
  • Constructor Details

    • DeviceSessionLogInfo

      public DeviceSessionLogInfo(@Nullable String ipAddress, @Nullable Date created, @Nullable Date updated)
      Device's session logged information.

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

      Parameters:
      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.
    • DeviceSessionLogInfo

      public DeviceSessionLogInfo()
      Device's session logged information.

      The default values for unset fields will be used.

  • Method Details

    • getIpAddress

      @Nullable public String getIpAddress()
      The IP address of the last activity from this session.
      Returns:
      value for this field, or null if not present.
    • getCreated

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

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

      public static DeviceSessionLogInfo.Builder newBuilder()
      Returns a new builder for creating an instance of this class.
      Returns:
      builder for this class.
    • 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