mas/MasKit/Models/SearchResult.swift

53 lines
1.6 KiB
Swift
Raw Normal View History

2018-12-30 06:57:06 +00:00
//
// SearchResult.swift
// MasKit
//
// Created by Ben Chatelain on 12/29/18.
// Copyright © 2018 mas-cli. All rights reserved.
//
2019-01-02 05:44:33 +00:00
public struct SearchResult: Decodable {
public var bundleId: String
public var currentVersionReleaseDate: String
public var fileSizeBytes: String
public var formattedPrice: String
public var minimumOsVersion: String
2019-01-02 05:44:33 +00:00
public var price: Double
public var sellerName: String
public var sellerUrl: String?
2019-01-02 05:44:33 +00:00
public var trackId: Int
public var trackCensoredName: String
2019-01-02 05:44:33 +00:00
public var trackName: String
public var trackViewUrl: String
public var version: String
init(bundleId: String = "",
currentVersionReleaseDate: String = "",
fileSizeBytes: String = "",
formattedPrice: String = "",
minimumOsVersion: String = "",
price: Double = 0.0,
sellerName: String = "",
sellerUrl: String = "",
trackId: Int = 0,
trackCensoredName: String = "",
trackName: String = "",
trackViewUrl: String = "",
version: String = ""
) {
self.bundleId = bundleId
self.currentVersionReleaseDate = currentVersionReleaseDate
self.fileSizeBytes = fileSizeBytes
self.formattedPrice = formattedPrice
self.minimumOsVersion = minimumOsVersion
self.price = price
self.sellerName = sellerName
self.sellerUrl = sellerUrl
self.trackId = trackId
self.trackCensoredName = trackCensoredName
self.trackName = trackName
self.trackViewUrl = trackViewUrl
self.version = version
}
2018-12-30 06:57:06 +00:00
}