Package com.clover.sdk.v3.apps
Class AppTracking
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.AppTracking
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class AppTracking extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Used to track the origin of a distributed call.
Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AppTracking.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<AppTracking>
CREATOR
static JSONifiable.Creator<AppTracking>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description AppTracking()
Constructs a new empty instance.protected
AppTracking(boolean noInit)
Constructs a new empty instance.AppTracking(AppTracking src)
Constructs a new instance that is a deep copy of the source instance.AppTracking(String json)
Constructs a new instance from the given JSON String.AppTracking(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearApplicationID()
Clears the 'applicationID' field, the 'has' method for this field will now return falsevoid
clearApplicationName()
Clears the 'applicationName' field, the 'has' method for this field will now return falsevoid
clearApplicationVersion()
Clears the 'applicationVersion' field, the 'has' method for this field will now return falsevoid
clearDeveloperAppId()
Clears the 'developerAppId' field, the 'has' method for this field will now return falsevoid
clearSourceSDK()
Clears the 'sourceSDK' field, the 'has' method for this field will now return falsevoid
clearSourceSDKVersion()
Clears the 'sourceSDKVersion' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.AppTracking
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getApplicationID()
A string representing an applicationString
getApplicationName()
The name of the developer application.String
getApplicationVersion()
A string representing a semanticversion.String
getDeveloperAppId()
The uuid from the developer application.protected GenericClient
getGenericClient()
JSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.String
getSourceSDK()
A string representing a SDKString
getSourceSDKVersion()
A string representing a semanticversion.boolean
hasApplicationID()
Checks whether the 'applicationID' field has been set, however the value could be nullboolean
hasApplicationName()
Checks whether the 'applicationName' field has been set, however the value could be nullboolean
hasApplicationVersion()
Checks whether the 'applicationVersion' field has been set, however the value could be nullboolean
hasDeveloperAppId()
Checks whether the 'developerAppId' field has been set, however the value could be nullboolean
hasSourceSDK()
Checks whether the 'sourceSDK' field has been set, however the value could be nullboolean
hasSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field has been set, however the value could be nullboolean
isNotNullApplicationID()
Checks whether the 'applicationID' field is set and is not nullboolean
isNotNullApplicationName()
Checks whether the 'applicationName' field is set and is not nullboolean
isNotNullApplicationVersion()
Checks whether the 'applicationVersion' field is set and is not nullboolean
isNotNullDeveloperAppId()
Checks whether the 'developerAppId' field is set and is not nullboolean
isNotNullSourceSDK()
Checks whether the 'sourceSDK' field is set and is not nullboolean
isNotNullSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field is set and is not nullvoid
mergeChanges(AppTracking src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.AppTracking
setApplicationID(String applicationID)
Sets the field 'applicationID'.AppTracking
setApplicationName(String applicationName)
Sets the field 'applicationName'.AppTracking
setApplicationVersion(String applicationVersion)
Sets the field 'applicationVersion'.AppTracking
setDeveloperAppId(String developerAppId)
Sets the field 'developerAppId'.AppTracking
setSourceSDK(String sourceSDK)
Sets the field 'sourceSDK'.AppTracking
setSourceSDKVersion(String sourceSDKVersion)
Sets the field 'sourceSDKVersion'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<AppTracking> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<AppTracking> JSON_CREATOR
-
-
Constructor Detail
-
AppTracking
public AppTracking()
Constructs a new empty instance.
-
AppTracking
protected AppTracking(boolean noInit)
Constructs a new empty instance.
-
AppTracking
public AppTracking(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
AppTracking
public AppTracking(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
AppTracking
public AppTracking(AppTracking src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getDeveloperAppId
public String getDeveloperAppId()
The uuid from the developer application. This is typically populated and used only on the back end.
-
getApplicationName
public String getApplicationName()
The name of the developer application.
-
getApplicationID
public String getApplicationID()
A string representing an application
-
getApplicationVersion
public String getApplicationVersion()
A string representing a semanticversion. See http://semver.org/
-
getSourceSDK
public String getSourceSDK()
A string representing a SDK
-
getSourceSDKVersion
public String getSourceSDKVersion()
A string representing a semanticversion. See http://semver.org/
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullDeveloperAppId
public boolean isNotNullDeveloperAppId()
Checks whether the 'developerAppId' field is set and is not null
-
isNotNullApplicationName
public boolean isNotNullApplicationName()
Checks whether the 'applicationName' field is set and is not null
-
isNotNullApplicationID
public boolean isNotNullApplicationID()
Checks whether the 'applicationID' field is set and is not null
-
isNotNullApplicationVersion
public boolean isNotNullApplicationVersion()
Checks whether the 'applicationVersion' field is set and is not null
-
isNotNullSourceSDK
public boolean isNotNullSourceSDK()
Checks whether the 'sourceSDK' field is set and is not null
-
isNotNullSourceSDKVersion
public boolean isNotNullSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field is set and is not null
-
hasDeveloperAppId
public boolean hasDeveloperAppId()
Checks whether the 'developerAppId' field has been set, however the value could be null
-
hasApplicationName
public boolean hasApplicationName()
Checks whether the 'applicationName' field has been set, however the value could be null
-
hasApplicationID
public boolean hasApplicationID()
Checks whether the 'applicationID' field has been set, however the value could be null
-
hasApplicationVersion
public boolean hasApplicationVersion()
Checks whether the 'applicationVersion' field has been set, however the value could be null
-
hasSourceSDK
public boolean hasSourceSDK()
Checks whether the 'sourceSDK' field has been set, however the value could be null
-
hasSourceSDKVersion
public boolean hasSourceSDKVersion()
Checks whether the 'sourceSDKVersion' field has been set, however the value could be null
-
setDeveloperAppId
public AppTracking setDeveloperAppId(String developerAppId)
Sets the field 'developerAppId'.
-
setApplicationName
public AppTracking setApplicationName(String applicationName)
Sets the field 'applicationName'.
-
setApplicationID
public AppTracking setApplicationID(String applicationID)
Sets the field 'applicationID'.
-
setApplicationVersion
public AppTracking setApplicationVersion(String applicationVersion)
Sets the field 'applicationVersion'.
-
setSourceSDK
public AppTracking setSourceSDK(String sourceSDK)
Sets the field 'sourceSDK'.
-
setSourceSDKVersion
public AppTracking setSourceSDKVersion(String sourceSDKVersion)
Sets the field 'sourceSDKVersion'.
-
clearDeveloperAppId
public void clearDeveloperAppId()
Clears the 'developerAppId' field, the 'has' method for this field will now return false
-
clearApplicationName
public void clearApplicationName()
Clears the 'applicationName' field, the 'has' method for this field will now return false
-
clearApplicationID
public void clearApplicationID()
Clears the 'applicationID' field, the 'has' method for this field will now return false
-
clearApplicationVersion
public void clearApplicationVersion()
Clears the 'applicationVersion' field, the 'has' method for this field will now return false
-
clearSourceSDK
public void clearSourceSDK()
Clears the 'sourceSDK' field, the 'has' method for this field will now return false
-
clearSourceSDKVersion
public void clearSourceSDKVersion()
Clears the 'sourceSDKVersion' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public AppTracking copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(AppTracking src)
Copy all the changed fields from the given source to this instance.
-
-