GameOpenRequest constructor

GameOpenRequest({
  1. required String campaignKey,
  2. required String campaignId,
  3. required String skinId,
  4. required int skinVersion,
  5. required String chanceId,
  6. required String? testInvocationId,
  7. required String projectId,
  8. required String userId,
  9. required String entryHtml,
  10. required bool showMute,
  11. required bool showClose,
  12. required CEPTriggerPayload payload,
  13. required String entry,
  14. String? themeFontFamily,
  15. String themeFontsJson = '[]',
  16. String valuesJson = '{}',
  17. String slotsJson = '[]',
  18. void onClose(
    1. String reason
    )?,
  19. void onFailure(
    1. GameFailureReason reason
    )?,
  20. void onCta(
    1. String reason
    )?,
  21. void onShown()?,
  22. void onHttpAnswer(
    1. String path,
    2. Map<String, dynamic>? requestBody,
    3. Map<String, dynamic>? responseBody
    )?,
  23. void onHttpTimeout(
    1. String reason
    )?,
  24. void onForeground(
    1. 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,
});