-
public final class CfLogLevelEvent.BuilderCfLogLevelEvent is to log the update of user level. It required the user level before update and user level after the update. You need to pass module Id as well if the level update event is triggered because of the e-learning content block, any achievement in the e-learning platform.
-
-
Method Summary
Modifier and Type Method Description final IntegergetPrev_level()final UnitsetPrev_level(Integer prev_level)final IntegergetNew_level()final UnitsetNew_level(Integer new_level)final StringgetModule_id()final UnitsetModule_id(String module_id)final <ERROR CLASS>setPreviousLevel(Integer prev_level)setPreviousLevel is required to set the previous score/level number for the user. final <ERROR CLASS>setNewLevel(Integer new_level)setNewLevel is required to set the new score/level number for the user. final <ERROR CLASS>setModuleId(String module_id)setModuleId is for specific use-case when update of level is from e-learning. final <ERROR CLASS>setMeta(Object meta)You can pass any type of value in setMeta. final <ERROR CLASS>updateImmediately(Boolean update_immediately)updateImmediately is responsible for updating the values ot the backend immediately. final <ERROR CLASS>build()build will validate all of the values provided and if passes will call the track function and queue the events based on it's updateImmediately value and also on the user's network resources. -
-
Method Detail
-
getPrev_level
final Integer getPrev_level()
-
setPrev_level
final Unit setPrev_level(Integer prev_level)
-
getNew_level
final Integer getNew_level()
-
setNew_level
final Unit setNew_level(Integer new_level)
-
getModule_id
final String getModule_id()
-
setModule_id
final Unit setModule_id(String module_id)
-
setPreviousLevel
final <ERROR CLASS> setPreviousLevel(Integer prev_level)
setPreviousLevel is required to set the previous score/level number for the user.
-
setNewLevel
final <ERROR CLASS> setNewLevel(Integer new_level)
setNewLevel is required to set the new score/level number for the user. This can be from any source, e-learning or e-commerce or even social.
-
setModuleId
final <ERROR CLASS> setModuleId(String module_id)
setModuleId is for specific use-case when update of level is from e-learning. In such case module id is required, otherwise you can pass null for this as well.
-
setMeta
final <ERROR CLASS> setMeta(Object meta)
You can pass any type of value in setMeta. It is for developer and partners to log additional information with the log that they find would be helpful for logging and providing more context to the log. Default value for the meta is null.
-
updateImmediately
final <ERROR CLASS> updateImmediately(Boolean update_immediately)
updateImmediately is responsible for updating the values ot the backend immediately. By default this is set to false or whatever the developer has set in the SDK initialisation block. This differs the time for which the logs will be logged, if true, the SDK will log the content instantly and if false it will wait till the end of user session which is whenever the app goes into background.
-
build
final <ERROR CLASS> build()
build will validate all of the values provided and if passes will call the track function and queue the events based on it's updateImmediately value and also on the user's network resources.
-
-
-
-