CIOQuizQuestion

public struct CIOQuizQuestion

Struct encapsulating a result data object with additional information about the result

  • id

    Question ID

    Declaration

    Swift

    public let id: Int
  • Title of the question

    Declaration

    Swift

    public let title: String?
  • The type of question

    Declaration

    Swift

    public let type: String?
  • Description for the question

    Declaration

    Swift

    public let description: String?
  • CTA text of the question

    Declaration

    Swift

    public let ctaText: String?
  • Images associated with the question

    Declaration

    Swift

    public let images: CIOQuizImages?
  • List of possible options (answers) for the question

    Declaration

    Swift

    public let options: [CIOQuizOption]?
  • The input placeholder for the question

    Declaration

    Swift

    public let inputPlaceholder: String?
  • Create a result data object

    Declaration

    Swift

    init?(json: JSONObject)

    Parameters

    json

    JSON data from the server response