getProfileRecord

The getProfileRecord method returns the profile records for the current session as an array of NameValuePair objects. These profile records also include any eventParameters added earlier in the runtime session.

getProfileRecord()

The getProfile method populates the profile record NameValuePair objects of a Response object.

Return value

The Response object returns an array of NameValuePair objects.

Example

The following example is an excerpt from a method which processes the response object for getOffers.

for(NameValuePair nvp : response.getProfileRecord())
{
    System.out.println("Name:"+nvp.getName());
    if(nvp.getValueDataType().equals(NameValuePair.DATA_TYPE_DATETIME))
    {
        System.out.println("Value:"+nvp.getValueAsDate());
    }
    else if(nvp.getValueDataType().equals(NameValuePair.DATA_TYPE_NUMERIC))
    {
         System.out.println("Value:"+nvp.getValueAsNumeric());
    }
    else
    {
        System.out.println("Value:"+nvp.getValueAsString());
    }
}