public class Breinify
extends java.lang.Object
| Constructor and Description |
|---|
Breinify() |
| Modifier and Type | Method and Description |
|---|---|
static void |
activity()
Sends an activity to the engine utilizing the API.
|
static void |
activity(BreinUser user,
java.lang.String activityType,
java.lang.String categoryType,
java.lang.String description,
boolean sign)
Sends an activity to the engine utilizing the API.
|
static BreinActivity |
getBreinActivity() |
static BreinLookup |
getBreinLookup() |
static BreinConfig |
getConfig()
gets the config
|
java.lang.String |
getVersion()
returns the version
|
static BreinResult |
lookup(BreinLookup breinLookup,
BreinUser user,
BreinDimension dimension,
boolean sign) |
static BreinResult |
lookup(BreinUser user,
BreinDimension dimension,
boolean sign)
Retrieves a lookup result from the engine.
|
static void |
setConfig(BreinConfig breinConfig)
sets the configuration
|
static void |
shutdown()
Shutdown Breinify services
|
public static void setConfig(BreinConfig breinConfig)
breinConfig - config objectpublic static BreinConfig getConfig()
public java.lang.String getVersion()
public static BreinActivity getBreinActivity()
public static BreinLookup getBreinLookup()
public static void activity(BreinUser user, java.lang.String activityType, java.lang.String categoryType, java.lang.String description, boolean sign)
This request is asynchronous.
user - a plain object specifying the user information the activity belongs toactivityType - the type of the activity collected, i.e., one of search, login, logout, addToCart,
removeFromCart, checkOut, selectProduct, or other. if not specified, the default other will
be usedcategoryType - the category of the platform/service/products, i.e., one of apparel, home, education, family,
food, health, job, services, or otherdescription - a string with further information about the activity performedsign - a boolean value specifying if the call should be signedpublic static void activity()
// retrieve BreinActivity instance from Breinify class BreinActivity breinActivity = Breinify.getBreinActivity();
// set methods as desired to breinActivity (for instance) breinActivity.setBreinUser(new BreinUser("user.name@email.com"); ...
// invoke this method Breinify.activity();
This request is asynchronous.
public static BreinResult lookup(BreinUser user, BreinDimension dimension, boolean sign)
This request is synchronous.
user - a plain object specifying information about the user to retrieve data for.dimension - an object (with an array) containing the names of the dimensions to lookup.sign - a boolean value specifying if the call should be signed.public static BreinResult lookup(BreinLookup breinLookup, BreinUser user, BreinDimension dimension, boolean sign)
public static void shutdown()
Copyright © Breinify - All Rights Reserved.