GameOpenRequest constructor
GameOpenRequest({
- required String campaignKey,
- required String campaignId,
- required String skinId,
- required int skinVersion,
- required String chanceId,
- required String? testInvocationId,
- required String projectId,
- required String userId,
- required String entryHtml,
- required bool showMute,
- required bool showClose,
- required CEPTriggerPayload payload,
- required String entry,
- String? themeFontFamily,
- String themeFontsJson = '[]',
- String valuesJson = '{}',
- String slotsJson = '[]',
- void onClose(
- String reason
- void onFailure(
- GameFailureReason reason
- void onCta(
- String reason
- void onShown()?,
- void onHttpAnswer()?,
- void onHttpTimeout(
- String reason
- void onForeground(
- bool foreground
Implementation
GameOpenRequest({
required this.campaignKey,
required this.campaignId,
required this.skinId,
required this.skinVersion,
required this.chanceId,
required this.testInvocationId,
required this.projectId,
required this.userId,
required this.entryHtml,
required this.showMute,
required this.showClose,
required this.payload,
required this.entry,
this.themeFontFamily,
this.themeFontsJson = '[]',
this.valuesJson = '{}',
this.slotsJson = '[]',
this.onClose,
this.onFailure,
this.onCta,
this.onShown,
this.onHttpAnswer,
this.onHttpTimeout,
this.onForeground,
});