Package 

Class TDFirstEvent


  • 
    public class TDFirstEvent
    extends TDEventModel
                        

    TDUniqueEvent Used to describe the first event. The server uses the event name and #first_check_id to determine if the event was first fired. If the event already exists in the system, the current data is ignored. By default, the device ID is used as #first_check_id.

    • Constructor Summary

      Constructors 
      Constructor Description
      TDFirstEvent(String eventName, JSONObject properties) Constructor to create the first event object based on the event name and properties.
    • Method Summary

      Modifier and Type Method Description
      void setFirstCheckId(String firstCheckId) Set the custom #first_check_id.
      • Methods inherited from class cn.thinkingdata.analytics.ThinkingAnalyticsEvent

        setEventTime, setEventTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TDFirstEvent

        TDFirstEvent(String eventName, JSONObject properties)
        Constructor to create the first event object based on the event name and properties.
        Parameters:
        eventName - event name
        properties - event properties,can be null
    • Method Detail

      • setFirstCheckId

         void setFirstCheckId(String firstCheckId)

        Set the custom #first_check_id.

        Parameters:
        firstCheckId - This parameter is used to detect whether it is reported for the first time.