Class SitumEvent

java.lang.Object
es.situm.sdk.v1.SitumEvent
All Implemented Interfaces:
android.os.Parcelable, MapperInterface

public class SitumEvent extends Object implements android.os.Parcelable, MapperInterface
An event: POI with radius, conversion area and asociated statistics. It is intended for usage in marketing apps
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<SitumEvent> CREATOR
  • Constructor Details

    • SitumEvent

      public SitumEvent()
  • Method Details

    • notifySeen

      @Deprecated public boolean notifySeen(android.content.Context context, String phoneId)
      Parameters:
      context - Application context for sending the notification
      phoneId - Phone identifier+
    • notifyClicked

      @Deprecated public boolean notifyClicked(android.content.Context applicationContext, String phoneid)
      Parameters:
      applicationContext - Application context for sending the notification
      phoneid - Phone identifier
    • notifyConverted

      @Deprecated public boolean notifyConverted(android.content.Context context, String phoneid)
      Notify a conversion
      Parameters:
      context - Application context for sending the notification
      phoneid - Phone identifier
    • getBuildingId

      public int getBuildingId()
      Deprecated.
    • getId

      public int getId()
    • setId

      public void setId(int id)
      Just for internal SDK use.
    • getFloor_id

      public int getFloor_id()
      Deprecated.
    • getX

      public float getX()
      Deprecated.
    • getY

      public float getY()
      Deprecated.
    • getRadius

      public float getRadius()
      Deprecated.
    • getName

      public String getName()
    • getHtml

      public String getHtml()
    • getConversionArea

      public SitumConversionArea getConversionArea()
      Deprecated.
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • toMap

      public Map<String,Object> toMap()
      Description copied from interface: MapperInterface
      Method to transform object into Map<String, Object>
      Specified by:
      toMap in interface MapperInterface
      Returns:
      Map<String, Object> with the information of the object mapped