CostItem

@objc public class CostItem: NSObject, Gloss.Decodable

Data object representing a cost for a product.

  • Reserved cost type identifier used for determining if the product is purchased using real money.

    Declaration

    Swift

    public static let COST_TYPE_MONEY = "money"
  • The cost type identifier. It will be either COST_TYPE_MONEY to indicate a real money purchase or something game specific for game currency purchase.

    Declaration

    Swift

    public var costType = ""
  • A float amount representing the cost.

    Declaration

    Swift

    public var amount: Float = 0
  • Returns a special string outputing all the classe’s data

    Declaration

    Swift

    public override var description: String
  • Initializes a CostItem object from a JSON object.

    Declaration

    Swift

    public required init?(json: JSON)

    Parameters

    json

    The json object to parse.