Class LinkedDeviceLogInfo
This class is an open tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isAbc()
methods will return true. You can use tag() to determine the
tag associated with this instance.
Open unions may be extended in the future with additional tags. If a new
tag is introduced that this SDK does not recognized, the OTHER value
will be used.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LinkedDeviceLogInfoCatch-all used for unknown tag values returned by the Dropbox servers. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedDeviceLogInfoReturns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION.booleandesktop device session's details.legacy device session's details.mobile device session's details.web device session's details.inthashCode()booleanReturnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION,falseotherwise.booleanReturnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION,falseotherwise.booleanReturnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION,falseotherwise.booleanisOther()booleanReturnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION,falseotherwise.static LinkedDeviceLogInfoReturns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION.static LinkedDeviceLogInfoReturns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION.tag()Returns the tag for this instance.toString()Returns a String representation of this object formatted for easier readability.static LinkedDeviceLogInfoReturns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION.
-
Field Details
-
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Details
-
tag
Returns the tag for this instance.This class is a tagged union. Tagged unions instances are always associated to a specific tag. This means only one of the
isXyz()methods will returntrue. Callers are recommended to use the tag value in aswitchstatement to properly handle the different values for thisLinkedDeviceLogInfo.If a tag returned by the server is unrecognized by this SDK, the
LinkedDeviceLogInfo.Tag.OTHERvalue will be used.- Returns:
- the tag for this instance.
-
isDesktopDeviceSession
public boolean isDesktopDeviceSession()Returnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION,falseotherwise.- Returns:
trueif this instance is tagged asLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION,falseotherwise.
-
desktopDeviceSession
Returns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION.desktop device session's details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
LinkedDeviceLogInfowith its tag set toLinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getDesktopDeviceSessionValue
desktop device session's details.This instance must be tagged as
LinkedDeviceLogInfo.Tag.DESKTOP_DEVICE_SESSION.- Returns:
- The
DesktopDeviceSessionLogInfovalue associated with this instance ifisDesktopDeviceSession()istrue. - Throws:
IllegalStateException- IfisDesktopDeviceSession()isfalse.
-
isLegacyDeviceSession
public boolean isLegacyDeviceSession()Returnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION,falseotherwise.- Returns:
trueif this instance is tagged asLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION,falseotherwise.
-
legacyDeviceSession
Returns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION.legacy device session's details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
LinkedDeviceLogInfowith its tag set toLinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getLegacyDeviceSessionValue
legacy device session's details.This instance must be tagged as
LinkedDeviceLogInfo.Tag.LEGACY_DEVICE_SESSION.- Returns:
- The
LegacyDeviceSessionLogInfovalue associated with this instance ifisLegacyDeviceSession()istrue. - Throws:
IllegalStateException- IfisLegacyDeviceSession()isfalse.
-
isMobileDeviceSession
public boolean isMobileDeviceSession()Returnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION,falseotherwise.- Returns:
trueif this instance is tagged asLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION,falseotherwise.
-
mobileDeviceSession
Returns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION.mobile device session's details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
LinkedDeviceLogInfowith its tag set toLinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getMobileDeviceSessionValue
mobile device session's details.This instance must be tagged as
LinkedDeviceLogInfo.Tag.MOBILE_DEVICE_SESSION.- Returns:
- The
MobileDeviceSessionLogInfovalue associated with this instance ifisMobileDeviceSession()istrue. - Throws:
IllegalStateException- IfisMobileDeviceSession()isfalse.
-
isWebDeviceSession
public boolean isWebDeviceSession()Returnstrueif this instance has the tagLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION,falseotherwise.- Returns:
trueif this instance is tagged asLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION,falseotherwise.
-
webDeviceSession
Returns an instance ofLinkedDeviceLogInfothat has its tag set toLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION.web device session's details.
- Parameters:
value- value to assign to this instance.- Returns:
- Instance of
LinkedDeviceLogInfowith its tag set toLinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION. - Throws:
IllegalArgumentException- ifvalueisnull.
-
getWebDeviceSessionValue
web device session's details.This instance must be tagged as
LinkedDeviceLogInfo.Tag.WEB_DEVICE_SESSION.- Returns:
- The
WebDeviceSessionLogInfovalue associated with this instance ifisWebDeviceSession()istrue. - Throws:
IllegalStateException- IfisWebDeviceSession()isfalse.
-
isOther
public boolean isOther()- Returns:
trueif this instance is tagged asLinkedDeviceLogInfo.Tag.OTHER,falseotherwise.
-
hashCode
public int hashCode() -
equals
-
toString
-
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
-