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
|
2019-01-08 00:36:14 +00:00
|
|
|
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
|
2019-01-12 00:11:26 +00:00
|
|
|
public var sellerUrl: String?
|
2019-01-02 05:44:33 +00:00
|
|
|
public var trackId: Int
|
2019-01-08 00:36:14 +00:00
|
|
|
public var trackCensoredName: String
|
2019-01-02 05:44:33 +00:00
|
|
|
public var trackName: String
|
|
|
|
public var trackViewUrl: String
|
|
|
|
public var version: String
|
2019-01-08 18:42:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
}
|