Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. sealed class WorkflowStepContent constructor (
  2. open val id: String,
  3. val htmlContent: String? = null
  4. ) {
  5. var converter: HtmlToMarkupConverter
  6. val markupContent: String?
  7.  
  8. init {
  9. var injector = Guice.createInjector(DiagnosticsModule())
  10. converter = injector.getInstance(HtmlToMarkupConverter::class.java)
  11. markupContent = converter(htmlContent)
  12. }
  13. }
  14.  
  15. data class QuestionStepContent(
  16. override val id: String,
  17. val title: String,
  18. val options: List<Option>
  19. ) : WorkflowStepContent(id)
  20.  
  21. data class SingleSelectorStepContent(
  22. override val id: String,
  23. val title: String,
  24. val options: List<Option>,
  25. val signalName: String,
  26. val valueKey: String
  27. ) : WorkflowStepContent(id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement