Package es.situm.sdk.v1
Class SitumEvent
- java.lang.Object
-
- es.situm.sdk.v1.SitumEvent
-
- All Implemented Interfaces:
android.os.Parcelable
public class SitumEvent extends Object implements android.os.Parcelable
An event: POI with radius, conversion area and asociated statistics. It is intended for usage in marketing apps
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<SitumEvent>CREATOR
-
Constructor Summary
Constructors Constructor Description SitumEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intdescribeContents()intgetBuildingId()Deprecated.UsegetTrigger()CirclegetConversion()Returns the conversion area of the event.SitumConversionAreagetConversionArea()Deprecated.UsegetConversion()Map<String,String>getCustomFields()Obtain a map with the custom fields for the current event.intgetFloor_id()Deprecated.UsegetTrigger()StringgetHtml()intgetId()StringgetName()floatgetRadius()Deprecated.UsegetTrigger()CirclegetTrigger()Returns the trigger area of the eventfloatgetX()Deprecated.UsegetTrigger()floatgetY()Deprecated.UsegetTrigger()booleannotifyClicked(android.content.Context applicationContext, String phoneid)Deprecated.booleannotifyConverted(android.content.Context context, String phoneid)Deprecated.booleannotifySeen(android.content.Context context, String phoneId)Deprecated.voidsetId(int id)Just for internal SDK use.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<SitumEvent> CREATOR
-
-
Method Detail
-
notifySeen
@Deprecated public boolean notifySeen(android.content.Context context, String phoneId)
Deprecated.- Parameters:
context- Application context for sending the notificationphoneId- Phone identifier+
-
notifyClicked
@Deprecated public boolean notifyClicked(android.content.Context applicationContext, String phoneid)
Deprecated.- Parameters:
applicationContext- Application context for sending the notificationphoneid- Phone identifier
-
notifyConverted
@Deprecated public boolean notifyConverted(android.content.Context context, String phoneid)
Deprecated.Notify a conversion- Parameters:
context- Application context for sending the notificationphoneid- Phone identifier
-
getBuildingId
public int getBuildingId()
Deprecated.UsegetTrigger()
-
getId
public int getId()
-
setId
public void setId(int id)
Just for internal SDK use.
-
getFloor_id
public int getFloor_id()
Deprecated.UsegetTrigger()
-
getX
public float getX()
Deprecated.UsegetTrigger()
-
getY
public float getY()
Deprecated.UsegetTrigger()
-
getRadius
public float getRadius()
Deprecated.UsegetTrigger()
-
getName
public String getName()
-
getHtml
public String getHtml()
-
getConversionArea
public SitumConversionArea getConversionArea()
Deprecated.UsegetConversion()
-
getConversion
@Nullable public Circle getConversion()
Returns the conversion area of the event. It will be null if no conversion area is defined.
-
getTrigger
public Circle getTrigger()
Returns the trigger area of the event
-
getCustomFields
@NonNull public Map<String,String> getCustomFields()
Obtain a map with the custom fields for the current event. The returned map never is null but can be empty if not custom fields are specified in the dashboard- Returns:
- Map with the custom fields for the current event
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-