Challenge

public struct Challenge : Codable
extension Challenge: Equatable

Struct representing Challenge related values.

  • String enumeration representing the response types of challenges.

    See more

    Declaration

    Swift

    public enum ResponseType : String, Codable
  • id

    Id of the challenge.

    Declaration

    Swift

    public var id: Int
  • Acceptance text of the challenge.

    Declaration

    Swift

    public var acceptanceText: String
  • Acceptance URL of the challenge.

    Declaration

    Swift

    public var acceptanceUrl: String
  • The text to be used for the action button that triggers view for responding to the associated challenge.

    Declaration

    Swift

    public var action: String
  • Amount of the award associated with the challenge.

    Declaration

    Swift

    public var awardAmount: String
  • Body of the challenge.

    Declaration

    Swift

    public var body: String
  • Business value of the challenge.

    Declaration

    Swift

    public var businessValue: String
  • Details of the challenge.

    Declaration

    Swift

    public var details: String
  • End of the effectivity of the challenge.

    Declaration

    Swift

    public var endPeriod: String
  • Heading of the challenge.

    Declaration

    Swift

    public var heading: String
  • Image URL of the challenge.

    Declaration

    Swift

    public var imageUrl: String
  • Internal URL of the challenge.

    Declaration

    Swift

    public var internalUrl: String
  • Returns if acceptance is required.

    Declaration

    Swift

    public var isAcceptanceRequired: Bool
  • Returns if the challenge is favorited or not.

    Declaration

    Swift

    public var isFavorited: Bool
  • Returns if the challenge is respondable or not.

    Declaration

    Swift

    public var isRespondable: Bool
  • Name of the challenge.

    Declaration

    Swift

    public var name: String
  • Metric associated with the challenge.

    Declaration

    Swift

    public var metric: String
  • Amount of the metric associated with the challenge. This is also the points to be earned upon completing the associated challenge.

    Declaration

    Swift

    public var metricAmount: String
  • Display name of the metric associated with the challenge.

    Declaration

    Swift

    public var metricDisplayName: String
  • Name of the metric associated with the challenge.

    Declaration

    Swift

    public var metricName: String
  • Original image URL of the challenge.

    Declaration

    Swift

    public var originalImageUrl: String
  • Polls of the challenge.

    Declaration

    Swift

    public var polls: [Poll]
  • ID of the prize for a successful response.

    Declaration

    Swift

    public var prizeId: Int
  • The prizes for a successful response.

    Declaration

    Swift

    public var prizes: [Prize]
  • Prizes in json format for a successful response.

    Declaration

    Swift

    public var prizesJsonString: String { get }
  • Respondable info of the challenge.

    Declaration

    Swift

    public var respondableInfo: RespondableInfo?
  • Response start date of the challenge.

    Declaration

    Swift

    public var responseEndDate: String
  • The customized response successful message set in the console.

    Declaration

    Swift

    public var responseMessage: String
  • Response schedule of the challenge.

    Declaration

    Swift

    public var responseSchedule: String
  • Returns the response setting of the challenge. Contents of the response setting varies depending on the type of the challenge.

    Declaration

    Swift

    public var responseSetting: ChallengeResponseSetting?
  • Response start date of the challenge.

    Declaration

    Swift

    public var responseStartDate: String
  • Type of the challenge.

    Declaration

    Swift

    public var responseType: ResponseType
  • Returns if the challenge is to be shown as alert challenge or not.

    Declaration

    Swift

    public var showAsAlert: Bool
  • Start of the effectivity of the challenge.

    Declaration

    Swift

    public var startPeriod: String
  • Status of the challenge if it was approved, submitted, or rejected.

    Declaration

    Swift

    public var status: String
  • Subheading of the challenge.

    Declaration

    Swift

    public var subheading: String
  • Subject of the challenge.

    Declaration

    Swift

    public var subject: String
  • Target URL of the challenge.

    Declaration

    Swift

    public var targetUrl: String
  • Thumbnail URL of the challenge.

    Declaration

    Swift

    public var thumbImageUrl: String
  • Tracking code of the challenge.

    Declaration

    Swift

    public var trackingCode: String
  • Trigger activity type of the challenge.

    Declaration

    Swift

    public var triggerActivityType: String
  • Undocumented

    Declaration

    Swift

    public init(id: Int, acceptanceText: String, acceptanceUrl: String, action: String, awardAmount: String,
                body: String, businessValue: String, details: String, endPeriod: String, heading: String,
                imageUrl: String, internalUrl: String, isAcceptanceRequired: Bool, isFavorited: Bool,
                isRespondable: Bool, name: String, metric: String, metricAmount: String, metricDisplayName: String,
                metricName: String, originalImageUrl: String, polls: [Poll], prizeId: Int,
                prizes: [Prize], respondableInfo: RespondableInfo?, responseEndDate: String,
                responseMessage: String, responseSchedule: String, responseSetting: ChallengeResponseSetting?,
                responseStartDate: String, responseType: ResponseType, showAsAlert: Bool, startPeriod: String,
                status: String, subheading: String, subject: String, targetUrl: String,
                thumbImageUrl: String, trackingCode: String, triggerActivityType: String)
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public static func == (lhs: Challenge, rhs: Challenge) -> Bool
  • Struct representing challenge response related values.

    See more

    Declaration

    Swift

    public struct Response : Codable, Equatable
  • Struct representing challenge response info values.

    See more

    Declaration

    Swift

    public struct ResponseInfo : Codable, Equatable
  • Struct representing a secondary metric prize.

    See more

    Declaration

    Swift

    public struct MetricPrize : SecondaryPrize, Equatable