Class Device
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.Device
-
public class Device extends java.lang.ObjectDevice
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDevice.StatusEnumThe device status.static classDevice.TypeEnumThe type of integration that the device represents.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_APP_VERSIONstatic java.lang.StringJSON_PROPERTY_CLIENT_IDstatic java.lang.StringJSON_PROPERTY_GUIDstatic java.lang.StringJSON_PROPERTY_IDstatic java.lang.StringJSON_PROPERTY_INFOstatic java.lang.StringJSON_PROPERTY_INTEGRATION_IDstatic java.lang.StringJSON_PROPERTY_LAST_SEENstatic java.lang.StringJSON_PROPERTY_PUSH_NOTIFICATION_TOKENstatic java.lang.StringJSON_PROPERTY_STATUSstatic java.lang.StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceappVersion(java.lang.String appVersion)DeviceclientId(java.lang.String clientId)booleanequals(java.lang.Object o)java.lang.StringgetAppVersion()Version of the mobile app in which the SDK is embedded.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getAppVersion_JsonNullable()java.lang.StringgetClientId()The id of the client to which this device is associated.java.lang.StringgetGuid()A unique identifier for the device, generated client-side by the SDK.java.lang.StringgetId()The unique ID of the device.java.lang.ObjectgetInfo()A flat curated object with properties that vary for each SDK platform.org.openapitools.jackson.nullable.JsonNullable<java.lang.Object>getInfo_JsonNullable()java.lang.StringgetIntegrationId()The ID of the integration that the device was created for.java.lang.StringgetLastSeen()A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the last time the user interacted with this device.java.lang.StringgetPushNotificationToken()The token used for push notifications on Android and iOS devices.org.openapitools.jackson.nullable.JsonNullable<java.lang.String>getPushNotificationToken_JsonNullable()Device.StatusEnumgetStatus()The device status.Device.TypeEnumgetType()The type of integration that the device represents.Deviceguid(java.lang.String guid)inthashCode()Deviceid(java.lang.String id)Deviceinfo(java.lang.Object info)DeviceintegrationId(java.lang.String integrationId)DevicelastSeen(java.lang.String lastSeen)DevicepushNotificationToken(java.lang.String pushNotificationToken)voidsetAppVersion(java.lang.String appVersion)voidsetAppVersion_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> appVersion)voidsetClientId(java.lang.String clientId)voidsetGuid(java.lang.String guid)voidsetId(java.lang.String id)voidsetInfo(java.lang.Object info)voidsetInfo_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> info)voidsetIntegrationId(java.lang.String integrationId)voidsetLastSeen(java.lang.String lastSeen)voidsetPushNotificationToken(java.lang.String pushNotificationToken)voidsetPushNotificationToken_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> pushNotificationToken)voidsetStatus(Device.StatusEnum status)voidsetType(Device.TypeEnum type)Devicestatus(Device.StatusEnum status)java.lang.StringtoString()Devicetype(Device.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final java.lang.String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final java.lang.String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GUID
public static final java.lang.String JSON_PROPERTY_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CLIENT_ID
public static final java.lang.String JSON_PROPERTY_CLIENT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final java.lang.String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTEGRATION_ID
public static final java.lang.String JSON_PROPERTY_INTEGRATION_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_SEEN
public static final java.lang.String JSON_PROPERTY_LAST_SEEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PUSH_NOTIFICATION_TOKEN
public static final java.lang.String JSON_PROPERTY_PUSH_NOTIFICATION_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INFO
public static final java.lang.String JSON_PROPERTY_INFO
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APP_VERSION
public static final java.lang.String JSON_PROPERTY_APP_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public Device id(java.lang.String id)
-
getId
@Nullable public java.lang.String getId()
The unique ID of the device.- Returns:
- id
-
setId
public void setId(java.lang.String id)
-
type
public Device type(Device.TypeEnum type)
-
getType
@Nullable public Device.TypeEnum getType()
The type of integration that the device represents.- Returns:
- type
-
setType
public void setType(Device.TypeEnum type)
-
guid
public Device guid(java.lang.String guid)
-
getGuid
@Nullable public java.lang.String getGuid()
A unique identifier for the device, generated client-side by the SDK.- Returns:
- guid
-
setGuid
public void setGuid(java.lang.String guid)
-
clientId
public Device clientId(java.lang.String clientId)
-
getClientId
@Nullable public java.lang.String getClientId()
The id of the client to which this device is associated.- Returns:
- clientId
-
setClientId
public void setClientId(java.lang.String clientId)
-
status
public Device status(Device.StatusEnum status)
-
getStatus
@Nullable public Device.StatusEnum getStatus()
The device status. Indicates if the device will receive push notifications or not.- Returns:
- status
-
setStatus
public void setStatus(Device.StatusEnum status)
-
integrationId
public Device integrationId(java.lang.String integrationId)
-
getIntegrationId
@Nullable public java.lang.String getIntegrationId()
The ID of the integration that the device was created for.- Returns:
- integrationId
-
setIntegrationId
public void setIntegrationId(java.lang.String integrationId)
-
lastSeen
public Device lastSeen(java.lang.String lastSeen)
-
getLastSeen
@Nullable public java.lang.String getLastSeen()
A datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the last time the user interacted with this device.- Returns:
- lastSeen
-
setLastSeen
public void setLastSeen(java.lang.String lastSeen)
-
pushNotificationToken
public Device pushNotificationToken(java.lang.String pushNotificationToken)
-
getPushNotificationToken
@Nullable public java.lang.String getPushNotificationToken()
The token used for push notifications on Android and iOS devices.- Returns:
- pushNotificationToken
-
getPushNotificationToken_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getPushNotificationToken_JsonNullable()
-
setPushNotificationToken_JsonNullable
public void setPushNotificationToken_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> pushNotificationToken)
-
setPushNotificationToken
public void setPushNotificationToken(java.lang.String pushNotificationToken)
-
info
public Device info(java.lang.Object info)
-
getInfo
@Nullable public java.lang.Object getInfo()
A flat curated object with properties that vary for each SDK platform. All keys are optional and not guaranteed to be available.- Returns:
- info
-
getInfo_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> getInfo_JsonNullable()
-
setInfo_JsonNullable
public void setInfo_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> info)
-
setInfo
public void setInfo(java.lang.Object info)
-
appVersion
public Device appVersion(java.lang.String appVersion)
-
getAppVersion
@Nullable public java.lang.String getAppVersion()
Version of the mobile app in which the SDK is embedded. Not applicable for devices of type web.- Returns:
- appVersion
-
getAppVersion_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> getAppVersion_JsonNullable()
-
setAppVersion_JsonNullable
public void setAppVersion_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> appVersion)
-
setAppVersion
public void setAppVersion(java.lang.String appVersion)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-