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

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

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

        @Deprecated
        public boolean notifyConverted​(android.content.Context context,
                                       java.lang.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.
      • getRadius

        public float getRadius()
        Deprecated.
      • getName

        public java.lang.String getName()
      • getHtml

        public java.lang.String getHtml()
      • 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 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
        Returns:
        Map with the custom fields for the current event
      • toString

        public java.lang.String toString()
        Overrides:
        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
        Returns:
        Map with the information of the object mapped