public class

Lead

extends Object
implements Parcelable JSONSerializable Cloneable
java.lang.Object
   ↳ com.ad4screen.sdk.analytics.Lead

Class Overview

Lead Object to use for analytics event

Summary

Constants
String KEY_LABEL
String KEY_VALUE
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<Lead> CREATOR
Public Constructors
Lead(String label, String value)
Constructor of lead object
Public Methods
Object clone()
int describeContents()
String getLabel()
Retrieve Lead label
String getValue()
Retrieve Lead value
void setLabel(String mLabel)
Set Lead label
void setValue(String mValue)
Set Lead value
JSONObject toJSON()
Serialize an object into a JSONObject
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable
From interface com.ad4screen.sdk.common.persistence.JSONSerializable

Constants

public static final String KEY_LABEL

Constant Value: "label"

public static final String KEY_VALUE

Constant Value: "value"

Fields

public static final Creator<Lead> CREATOR

Public Constructors

public Lead (String label, String value)

Constructor of lead object

Parameters
label label of the Lead
value value of the lead

Public Methods

public Object clone ()

Throws
CloneNotSupportedException

public int describeContents ()

public String getLabel ()

Retrieve Lead label

public String getValue ()

Retrieve Lead value

Returns
  • label

public void setLabel (String mLabel)

Set Lead label

public void setValue (String mValue)

Set Lead value

public JSONObject toJSON ()

Serialize an object into a JSONObject

Returns
  • JSONObject of the serialized class
Throws
JSONException

public void writeToParcel (Parcel dest, int flags)