public class DeviceAppAttributes
extends java.lang.Object
Constructor and Description |
---|
DeviceAppAttributes(JSONObject json)
Constructs device app attributes from its JSON representation.
|
DeviceAppAttributes(java.lang.String appVersion,
java.lang.String appName,
java.lang.String osVersion,
java.lang.String osName,
java.lang.String nativeAppType,
java.lang.String mobileSdkVersion,
java.lang.String deviceModel,
java.lang.String deviceId,
java.lang.String clientId)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppName()
Returns app name.
|
java.lang.String |
getAppVersion()
Returns app version.
|
java.lang.String |
getClientId()
Returns client ID.
|
java.lang.String |
getDeviceId()
Returns device ID.
|
java.lang.String |
getDeviceModel()
Returns device model.
|
java.lang.String |
getMobileSdkVersion()
Returns Mobile SDK version.
|
java.lang.String |
getNativeAppType()
Returns app type.
|
java.lang.String |
getOsName()
Returns OS name.
|
java.lang.String |
getOsVersion()
Returns OS version.
|
JSONObject |
toJson()
Returns a JSON representation of device app attributes.
|
public DeviceAppAttributes(java.lang.String appVersion, java.lang.String appName, java.lang.String osVersion, java.lang.String osName, java.lang.String nativeAppType, java.lang.String mobileSdkVersion, java.lang.String deviceModel, java.lang.String deviceId, java.lang.String clientId)
appVersion
- App version.appName
- App name.osVersion
- OS version.osName
- OS name.nativeAppType
- App type.mobileSdkVersion
- Mobile SDK version.deviceModel
- Device model.deviceId
- Device ID.clientId
- Client ID.public DeviceAppAttributes(JSONObject json)
json
- JSON object.public java.lang.String getAppVersion()
public java.lang.String getAppName()
public java.lang.String getOsVersion()
public java.lang.String getOsName()
public java.lang.String getNativeAppType()
public java.lang.String getMobileSdkVersion()
public java.lang.String getDeviceModel()
public java.lang.String getDeviceId()
public java.lang.String getClientId()
public JSONObject toJson()