[iOS] fix deeplinks to catalog

This commit is contained in:
Aleksey Belouosv 2018-11-30 20:05:23 +03:00 committed by Olesia Bolovintseva
parent 5167980b98
commit 2c4662ff02
2 changed files with 5 additions and 6 deletions

View file

@ -1,17 +1,16 @@
struct CatalogCategoryInfo {
var id: String
var name: String
var author: String
var author: String?
var productId: String?
var imageUrl: String?
init?(_ components: [String : String]) {
guard let id = components["id"],
let name = components["name"],
let author = components["author_name"] else { return nil }
let name = components["name"] else { return nil }
self.id = id
self.name = name
self.author = author
author = components["author_name"]
productId = components["tier"]
imageUrl = components["img"]
}

View file

@ -18,13 +18,13 @@ class PaidRouteViewController: MWMViewController {
private let purchase: IPaidRoutePurchase
private let statistics: IPaidRouteStatistics
private let name: String
private let author: String
private let author: String?
private let imageUrl: URL?
private var product: IStoreProduct?
init(name: String,
author: String,
author: String?,
imageUrl: URL?,
purchase: IPaidRoutePurchase,
statistics: IPaidRouteStatistics) {