Class SitumEvent

  • All Implemented Interfaces:
    android.os.Parcelable, MapperInterface

    public class SitumEvent
    extends java.lang.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 Detail

      • CREATOR

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

      • SitumEvent

        public SitumEvent()
    • Method Detail

      • notifySeen

        public boolean notifySeen​(android.content.Context context,
                                  java.lang.String phoneId)
        context - Application context for sending the notification
        phoneId - Phone identifier+
      • notifyClicked

        public boolean notifyClicked​(android.content.Context applicationContext,
                                     java.lang.String phoneid)
        applicationContext - Application context for sending the notification
        phoneid - Phone identifier
      • notifyConverted

        public boolean notifyConverted​(android.content.Context context,
                                       java.lang.String phoneid)
        Notify a conversion
        context - Application context for sending the notification
        phoneid - Phone identifier
      • getBuildingId

        public int getBuildingId()
      • getId

        public int getId()
      • setId

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

        public int getFloor_id()
      • getRadius

        public float getRadius()
      • getName

        public java.lang.String getName()
      • getHtml

        public java.lang.String getHtml()
      • getConversion

        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

        public java.util.Map<java.lang.String,​java.lang.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
        Map with the custom fields for the current event
      • toString

        public java.lang.String toString()
        toString in class java.lang.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 java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Map with the information of the object mapped