EventResponse

public struct EventResponse : Codable, JSONEncodable, Hashable

Topsort’s API response for events

  • id

    Undocumented

    Declaration

    Swift

    public var id: String?
  • The unique ID for a HitEvent. Non nil for TopsortSDK/TopsortSDK/logHit(hit:) calls.

    Declaration

    Swift

    public var hitId: String?
  • Unique ID for each impression sent on ImpressionEvent. Non nil for TopsortSDK/TopsortSDK/logImpressions(impressions:) calls.

    Declaration

    Swift

    public var impressions: [ImpressionResponse]?
  • Unique ID for a purchase event. Non nil for TopsortSDK/TopsortSDK/logPurchase(purchase:) calls.

    Declaration

    Swift

    public var purchaseId: String?
  • Undocumented

    Declaration

    Swift

    public init(id: String? = nil, hitId: String? = nil, impressions: [ImpressionResponse]? = nil, purchaseId: String? = nil)
  • Declaration

    Swift

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

    Swift

    public init(from: Decoder) throws