-
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 voidsetFirstCheckId(String firstCheckId)Set the custom #first_check_id. -
-
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 nameproperties- 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.
-
-
-
-