StepQuizCodeBlanksClickedCodeBlockChildHyperskillAnalyticEvent

class StepQuizCodeBlanksClickedCodeBlockChildHyperskillAnalyticEvent(val route: HyperskillAnalyticRoute, codeBlock: CodeBlock?, codeBlockChild: CodeBlockChild?) : HyperskillAnalyticEvent

Represents click on the code block child in the code blanks analytic event.

JSON payload:

{
"route": "/learn/step/1",
"action": "click",
"part": "code_block",
"target": "code_block_child",
"context":
{
"code_block": "Blank(isActive=true, suggestions=[Print])",
"code_block_child": "SelectSuggestion(isActive=true, suggestions=[Print], selectedSuggestion=null)"
}
}

See also

Constructors

constructor(route: HyperskillAnalyticRoute, codeBlock: CodeBlock?, codeBlockChild: CodeBlockChild?)

Properties

Link copied to clipboard

Event action, for example: click, view.

Link copied to clipboard
val context: Map<String, Any>? = null

Context that describes an event, for example: stepId, notificationId.

Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val params: Map<String, Any>
Link copied to clipboard

Event part where action occurred, for example: main, step_hints.

Link copied to clipboard

Event route path, for example: /home, /onboarding.

Link copied to clipboard
override val sources: Set<AnalyticSource>
Link copied to clipboard

Target that triggered event, for example: send, refresh.