Response

public struct Response : Codable, Equatable

Struct representing challenge response related values.

  • id

    Id of the challenge response.

    Declaration

    Swift

    public var id: Int
  • Attachment url of a challenge response.

    Declaration

    Swift

    public var attachmentUrl: String
  • The value of the response.

    Declaration

    Swift

    public var response: String
  • Status of the response.

    Declaration

    Swift

    public var status: String
  • Date created of the response.

    Declaration

    Swift

    public var dateCreated: String
  • The challenge which the response responded to.

    Declaration

    Swift

    public var challenge: Challenge?
  • Prizes for the response.

    Declaration

    Swift

    public var prizes: [Prize]
  • Undocumented

    Declaration

    Swift

    public init(id: Int, attachmentUrl: String, response: String, status: String,
                dateCreated: String, challenge: Challenge?, prizes: [Prize])
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Initializer with id and status only.

    Declaration

    Swift

    public init(id: Int, status: String)